Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 482997498f9f95c2819169698d08f0c7 > files > 68

bind-9.3.6-25.P1.el5_11.8.src.rpm

diff -up bind-9.3.6-P1/bin/named/server.c.rh692758 bind-9.3.6-P1/bin/named/server.c
--- bind-9.3.6-P1/bin/named/server.c.rh692758	2011-10-26 17:02:39.870966972 +0200
+++ bind-9.3.6-P1/bin/named/server.c	2011-10-26 17:07:15.676947813 +0200
@@ -2832,15 +2832,6 @@ load_configuration(const char *filename,
 		ns_os_changeuser();
 
 	/*
-	 * Check that the working directory is writable.
-	 */
-	if (access(".", W_OK) != 0) {
-		isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
-			      NS_LOGMODULE_SERVER, ISC_LOG_ERROR,
-			      "the working directory is not writable");
-	}
-
-	/*
 	 * Configure the logging system.
 	 *
 	 * Do this after changing UID to make sure that any log
@@ -2886,6 +2877,15 @@ load_configuration(const char *filename,
 	}
 
 	/*
+	 * Check that the working directory is writable.
+	 */
+	if (access(".", W_OK) != 0) {
+		isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
+			      NS_LOGMODULE_SERVER, ISC_LOG_DEBUG(1),
+			      "the working directory is not writable");
+	}
+
+	/*
 	 * Set the default value of the query logging flag depending
 	 * whether a "queries" category has been defined.  This is
 	 * a disgusting hack, but we need to do this for BIND 8