]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - bind/patches/bind97-rh693982.patch
bind: Rework package.
[people/ms/ipfire-3.x.git] / bind / patches / bind97-rh693982.patch
CommitLineData
ac29baf9
SS
1diff -up bind-9.7.3-P3/bin/named/server.c.rh693982 bind-9.7.3-P3/bin/named/server.c
2--- bind-9.7.3-P3/bin/named/server.c.rh693982 2011-08-12 17:18:55.611978110 +0200
3+++ bind-9.7.3-P3/bin/named/server.c 2011-08-12 17:19:36.009975303 +0200
4@@ -4444,15 +4444,6 @@ load_configuration(const char *filename,
5 ns_os_changeuser();
6
7 /*
8- * Check that the working directory is writable.
9- */
10- if (access(".", W_OK) != 0) {
11- isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
12- NS_LOGMODULE_SERVER, ISC_LOG_ERROR,
13- "the working directory is not writable");
14- }
15-
16- /*
17 * Configure the logging system.
18 *
19 * Do this after changing UID to make sure that any log
20@@ -4498,6 +4489,15 @@ load_configuration(const char *filename,
21 }
22
23 /*
24+ * Check that the working directory is writable.
25+ */
26+ if (access(".", W_OK) != 0) {
27+ isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
28+ NS_LOGMODULE_SERVER, ISC_LOG_DEBUG(1),
29+ "the working directory is not writable");
30+ }
31+
32+ /*
33 * Set the default value of the query logging flag depending
34 * whether a "queries" category has been defined. This is
35 * a disgusting hack, but we need to do this for BIND 8