mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
299. [cleanup] Get the user and group information before changing the
root directory, so the administrator does not need to keep a copy of the user and group databases in the chroot'ed environment. Suggested by Hakan Olsson.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: server.c,v 1.200 2000/06/23 01:08:29 gson Exp $ */
|
||||
/* $Id: server.c,v 1.201 2000/07/01 00:48:03 tale Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -1334,7 +1334,7 @@ load_configuration(const char *filename, ns_server_t *server,
|
||||
* Relinquish root privileges.
|
||||
*/
|
||||
if (first_time)
|
||||
ns_os_changeuser(ns_g_username);
|
||||
ns_os_changeuser();
|
||||
|
||||
/*
|
||||
* Configure the logging system.
|
||||
|
Reference in New Issue
Block a user