bind/bind97-rh693982.patch
2017-08-08 17:14:41 +02:00

37 lines
1.1 KiB
Diff

diff --git a/bin/named/server.c b/bin/named/server.c
index 529ba5e..a936597 100644
--- a/bin/named/server.c
+++ b/bin/named/server.c
@@ -7892,15 +7892,6 @@ 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");
- }
-
#ifdef HAVE_LMDB
/*
* Reopen NZD databases.
@@ -7976,6 +7967,15 @@ load_configuration(const char *filename, ns_server_t *server,
}
/*
+ * 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_DEBUG(1),
+ "the working directory is not writable");
+ }
+
+ /*
* Set the default value of the query logging flag depending
* whether a "queries" category has been defined. This is
* a disgusting hack, but we need to do this for BIND 8