Blame bind97-rh693982.patch
|
|
79d28e |
diff --git a/bin/named/server.c b/bin/named/server.c
|
|
|
79d28e |
index 529ba5e..a936597 100644
|
|
|
79d28e |
--- a/bin/named/server.c
|
|
|
79d28e |
+++ b/bin/named/server.c
|
|
|
79d28e |
@@ -7892,15 +7892,6 @@ load_configuration(const char *filename, ns_server_t *server,
|
|
|
79d28e |
if (first_time)
|
|
Adam Tkac |
2bd245 |
ns_os_changeuser();
|
|
Adam Tkac |
2bd245 |
|
|
|
79d28e |
- /*
|
|
Adam Tkac |
2bd245 |
- * Check that the working directory is writable.
|
|
Adam Tkac |
2bd245 |
- */
|
|
Adam Tkac |
2bd245 |
- if (access(".", W_OK) != 0) {
|
|
Adam Tkac |
2bd245 |
- isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
|
|
Adam Tkac |
2bd245 |
- NS_LOGMODULE_SERVER, ISC_LOG_ERROR,
|
|
Adam Tkac |
2bd245 |
- "the working directory is not writable");
|
|
Adam Tkac |
2bd245 |
- }
|
|
Adam Tkac |
2bd245 |
-
|
|
|
79d28e |
#ifdef HAVE_LMDB
|
|
|
79d28e |
/*
|
|
|
79d28e |
* Reopen NZD databases.
|
|
|
79d28e |
@@ -7976,6 +7967,15 @@ load_configuration(const char *filename, ns_server_t *server,
|
|
Adam Tkac |
2bd245 |
}
|
|
Adam Tkac |
2bd245 |
|
|
Adam Tkac |
2bd245 |
/*
|
|
Adam Tkac |
2bd245 |
+ * Check that the working directory is writable.
|
|
Adam Tkac |
2bd245 |
+ */
|
|
Adam Tkac |
2bd245 |
+ if (access(".", W_OK) != 0) {
|
|
Adam Tkac |
2bd245 |
+ isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
|
|
Adam Tkac |
2bd245 |
+ NS_LOGMODULE_SERVER, ISC_LOG_DEBUG(1),
|
|
Adam Tkac |
2bd245 |
+ "the working directory is not writable");
|
|
Adam Tkac |
2bd245 |
+ }
|
|
Adam Tkac |
2bd245 |
+
|
|
Adam Tkac |
2bd245 |
+ /*
|
|
Adam Tkac |
2bd245 |
* Set the default value of the query logging flag depending
|
|
Adam Tkac |
2bd245 |
* whether a "queries" category has been defined. This is
|
|
Adam Tkac |
2bd245 |
* a disgusting hack, but we need to do this for BIND 8
|