From bcc1d6507b69be307fc1e0206827a0b09b10ba4b Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Fri, 28 Jan 2000 20:09:49 +0000 Subject: [PATCH] call ns_os_changeuser() from run_server() --- bin/named/server.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/named/server.c b/bin/named/server.c index a30a9a770e..16ce122354 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -66,6 +66,7 @@ #include #include #include +#include #include #include @@ -851,6 +852,13 @@ run_server(isc_task_t *task, isc_event_t *event) { CHECKFATAL(load_zones(server, ISC_TRUE), "loading zones"); + /* + * XXXRTH Currently ns_os_changeuser() will call ns_main_earlyfatal() + * if it fails. Perhaps it should be changed to return an + * error code? + */ + ns_os_changeuser(ns_g_username); + isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_SERVER, ISC_LOG_INFO, "running"); }