2017-07-10 09:52:38 +00:00
|
|
|
diff --git a/bin/named/server.c b/bin/named/server.c
|
2018-02-15 13:31:19 +00:00
|
|
|
index 20a6e31..dececd5 100644
|
2017-07-10 09:52:38 +00:00
|
|
|
--- a/bin/named/server.c
|
|
|
|
+++ b/bin/named/server.c
|
2018-02-15 13:31:19 +00:00
|
|
|
@@ -8126,15 +8126,6 @@ load_configuration(const char *filename, ns_server_t *server,
|
2011-08-31 13:09:46 +00:00
|
|
|
ns_os_changeuser();
|
2018-02-15 13:31:19 +00:00
|
|
|
}
|
2011-08-31 13:09:46 +00:00
|
|
|
|
2017-07-10 09:52:38 +00:00
|
|
|
- /*
|
2011-08-31 13:09:46 +00:00
|
|
|
- * Check that the working directory is writable.
|
|
|
|
- */
|
2018-02-15 13:31:19 +00:00
|
|
|
- if (!isc_file_isdirwritable(".")) {
|
2011-08-31 13:09:46 +00:00
|
|
|
- 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.
|
2018-02-15 13:31:19 +00:00
|
|
|
@@ -8209,6 +8200,15 @@ load_configuration(const char *filename, ns_server_t *server,
|
|
|
|
"config file");
|
2011-08-31 13:09:46 +00:00
|
|
|
}
|
|
|
|
|
2018-02-15 13:31:19 +00:00
|
|
|
+ /*
|
2011-08-31 13:09:46 +00:00
|
|
|
+ * Check that the working directory is writable.
|
|
|
|
+ */
|
2018-02-15 13:31:19 +00:00
|
|
|
+ if (!isc_file_isdirwritable(".")) {
|
2011-08-31 13:09:46 +00:00
|
|
|
+ isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
|
|
|
|
+ NS_LOGMODULE_SERVER, ISC_LOG_DEBUG(1),
|
|
|
|
+ "the working directory is not writable");
|
|
|
|
+ }
|
|
|
|
+
|
2018-02-15 13:31:19 +00:00
|
|
|
/*
|
2011-08-31 13:09:46 +00:00
|
|
|
* Set the default value of the query logging flag depending
|
|
|
|
* whether a "queries" category has been defined. This is
|