Blame bind97-rh693982.patch
|
|
79d28e |
diff --git a/bin/named/server.c b/bin/named/server.c
|
|
|
cb2172 |
index 20a6e31..dececd5 100644
|
|
|
79d28e |
--- a/bin/named/server.c
|
|
|
79d28e |
+++ b/bin/named/server.c
|
|
|
cb2172 |
@@ -8126,15 +8126,6 @@ load_configuration(const char *filename, ns_server_t *server,
|
|
Adam Tkac |
2bd245 |
ns_os_changeuser();
|
|
|
cb2172 |
}
|
|
Adam Tkac |
2bd245 |
|
|
|
79d28e |
- /*
|
|
Adam Tkac |
2bd245 |
- * Check that the working directory is writable.
|
|
Adam Tkac |
2bd245 |
- */
|
|
|
cb2172 |
- if (!isc_file_isdirwritable(".")) {
|
|
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.
|
|
|
cb2172 |
@@ -8209,6 +8200,15 @@ load_configuration(const char *filename, ns_server_t *server,
|
|
|
cb2172 |
"config file");
|
|
Adam Tkac |
2bd245 |
}
|
|
Adam Tkac |
2bd245 |
|
|
|
cb2172 |
+ /*
|
|
Adam Tkac |
2bd245 |
+ * Check that the working directory is writable.
|
|
Adam Tkac |
2bd245 |
+ */
|
|
|
cb2172 |
+ if (!isc_file_isdirwritable(".")) {
|
|
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 |
+
|
|
|
cb2172 |
/*
|
|
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
|