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:
parent
2152b79896
commit
efe34b8ddb
3
CHANGES
3
CHANGES
@ -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
|
||||
statistics XSL [RT #18159].
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* 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 */
|
||||
|
||||
@ -2965,15 +2965,6 @@ load_configuration(const char *filename, ns_server_t *server,
|
||||
}
|
||||
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.
|
||||
*/
|
||||
@ -3411,6 +3402,15 @@ load_configuration(const char *filename, ns_server_t *server,
|
||||
if (first_time)
|
||||
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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user