bind/bind97-rh693982.patch

37 lines
1.0 KiB
Diff
Raw Normal View History

2017-07-10 09:52:38 +00:00
diff --git a/bin/named/server.c b/bin/named/server.c
index 20a6e31..dececd5 100644
2017-07-10 09:52:38 +00:00
--- a/bin/named/server.c
+++ b/bin/named/server.c
@@ -8126,15 +8126,6 @@ load_configuration(const char *filename, ns_server_t *server,
ns_os_changeuser();
}
2017-07-10 09:52:38 +00:00
- /*
- * Check that the working directory is writable.
- */
- if (!isc_file_isdirwritable(".")) {
- isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
- NS_LOGMODULE_SERVER, ISC_LOG_ERROR,
- "the working directory is not writable");
- }
-
2017-07-10 09:52:38 +00:00
#ifdef HAVE_LMDB
/*
* Reopen NZD databases.
@@ -8209,6 +8200,15 @@ load_configuration(const char *filename, ns_server_t *server,
"config file");
}
+ /*
+ * Check that the working directory is writable.
+ */
+ if (!isc_file_isdirwritable(".")) {
+ 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