From 9f1c4e1ea50597a77436ef58acfc381ded4dcb80 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Wed, 6 Jun 2012 02:48:06 +0000
Subject: [PATCH] Call seteuid() sooner in bbs_thread() to ensure that
 directories and dsts.dab files are not created as root.

---
 src/sbbs3/main.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp
index 832404c2b6..b062b70fad 100644
--- a/src/sbbs3/main.cpp
+++ b/src/sbbs3/main.cpp
@@ -4431,6 +4431,8 @@ void DLLCALL bbs_thread(void* arg)
 	protected_uint32_init(&node_threads_running,0);
 
 	thread_up(FALSE /* setuid */);
+	if(startup->seteuid!=NULL)
+		startup->seteuid(TRUE);
 
 	status("Initializing");
 
-- 
GitLab