2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-01 15:05:23 +00:00

[master] make writable directory and managed-keys directory mandatory - check in load_configuration (cherry-picked from rt46077b)

This commit is contained in:
Ondřej Surý
2017-10-11 08:37:36 +02:00
parent b4c8cab0e2
commit 1ca7e01aa7

View File

@@ -8481,10 +8481,12 @@ load_configuration(const char *filename, named_server_t *server,
/* /*
* Check that the working directory is writable. * Check that the working directory is writable.
*/ */
if (access(".", W_OK) != 0) { if (access(".", W_OK|X_OK) != 0) {
isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL, isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL,
NAMED_LOGMODULE_SERVER, ISC_LOG_ERROR, NAMED_LOGMODULE_SERVER, ISC_LOG_ERROR,
"the working directory is not writable"); "the working directory is not writable");
result = ISC_R_NOPERM;
goto cleanup;
} }
#ifdef HAVE_LMDB #ifdef HAVE_LMDB