]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] make writable directory and managed-keys directory mandatory - check in...
authorOndřej Surý <ondrej@sury.org>
Wed, 11 Oct 2017 06:37:36 +0000 (08:37 +0200)
committerOndřej Surý <ondrej@sury.org>
Wed, 11 Oct 2017 06:44:26 +0000 (08:44 +0200)
bin/named/server.c

index ee0f59722677dd3fedbf117e9c9fdea1176f3dce..23b22e31f6ac345ad3007389de216b589ab11bea 100644 (file)
@@ -8481,10 +8481,12 @@ load_configuration(const char *filename, named_server_t *server,
        /*
         * 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,
                              NAMED_LOGMODULE_SERVER, ISC_LOG_ERROR,
                              "the working directory is not writable");
+               result = ISC_R_NOPERM;
+               goto cleanup;
        }
 
 #ifdef HAVE_LMDB