|
Adam Tkac |
2bd245 |
diff -up bind-9.7.3-P3/bin/named/server.c.rh693982 bind-9.7.3-P3/bin/named/server.c
|
|
Adam Tkac |
2bd245 |
--- bind-9.7.3-P3/bin/named/server.c.rh693982 2011-08-12 17:18:55.611978110 +0200
|
|
Adam Tkac |
2bd245 |
+++ bind-9.7.3-P3/bin/named/server.c 2011-08-12 17:19:36.009975303 +0200
|
|
Adam Tkac |
2bd245 |
@@ -4444,15 +4444,6 @@ load_configuration(const char *filename,
|
|
Adam Tkac |
2bd245 |
ns_os_changeuser();
|
|
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_ERROR,
|
|
Adam Tkac |
2bd245 |
- "the working directory is not writable");
|
|
Adam Tkac |
2bd245 |
- }
|
|
Adam Tkac |
2bd245 |
-
|
|
Adam Tkac |
2bd245 |
- /*
|
|
Adam Tkac |
2bd245 |
* Configure the logging system.
|
|
Adam Tkac |
2bd245 |
*
|
|
Adam Tkac |
2bd245 |
* Do this after changing UID to make sure that any log
|
|
Adam Tkac |
2bd245 |
@@ -4498,6 +4489,15 @@ load_configuration(const char *filename,
|
|
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
|