2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

2389 [bug] Move the working directory writable to after the

ns_os_changeuser() call. [RT #18326]
This commit is contained in:
Mark Andrews 2008-07-18 01:26:20 +00:00
parent 2152b79896
commit efe34b8ddb
2 changed files with 13 additions and 10 deletions

View File

@ -1,3 +1,6 @@
2389 [bug] Move the working directory writable to after the
ns_os_changeuser() call. [RT #18326]
2388. [bug] Avoid using tables for layout purposes in 2388. [bug] Avoid using tables for layout purposes in
statistics XSL [RT #18159]. statistics XSL [RT #18159].

View File

@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: server.c,v 1.512 2008/07/12 05:58:08 jinmei Exp $ */ /* $Id: server.c,v 1.513 2008/07/18 01:26:20 marka Exp $ */
/*! \file */ /*! \file */
@ -2965,15 +2965,6 @@ load_configuration(const char *filename, ns_server_t *server,
} }
CHECK(result); CHECK(result);
/*
* Check that the working directory is writable.
*/
if (access(".", W_OK) != 0) {
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
NS_LOGMODULE_SERVER, ISC_LOG_ERROR,
"the working directory is not writable");
}
/* /*
* Check the validity of the configuration. * Check the validity of the configuration.
*/ */
@ -3411,6 +3402,15 @@ load_configuration(const char *filename, ns_server_t *server,
if (first_time) if (first_time)
ns_os_changeuser(); ns_os_changeuser();
/*
* Check that the working directory is writable.
*/
if (access(".", W_OK) != 0) {
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
NS_LOGMODULE_SERVER, ISC_LOG_ERROR,
"the working directory is not writable");
}
/* /*
* Configure the logging system. * Configure the logging system.
* *