900526
diff -up bind-9.7.3-P3/bin/named/server.c.rh693982 bind-9.7.3-P3/bin/named/server.c
900526
--- bind-9.7.3-P3/bin/named/server.c.rh693982	2011-08-12 17:18:55.611978110 +0200
900526
+++ bind-9.7.3-P3/bin/named/server.c	2011-08-12 17:19:36.009975303 +0200
900526
@@ -4444,15 +4444,6 @@ load_configuration(const char *filename,
900526
 		ns_os_changeuser();
900526
 
900526
 	/*
900526
-	 * Check that the working directory is writable.
900526
-	 */
900526
-	if (access(".", W_OK) != 0) {
900526
-		isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
900526
-			      NS_LOGMODULE_SERVER, ISC_LOG_ERROR,
900526
-			      "the working directory is not writable");
900526
-	}
900526
-
900526
-	/*
900526
 	 * Configure the logging system.
900526
 	 *
900526
 	 * Do this after changing UID to make sure that any log
900526
@@ -4498,6 +4489,15 @@ load_configuration(const char *filename,
900526
 	}
900526
 
900526
 	/*
900526
+	 * Check that the working directory is writable.
900526
+	 */
900526
+	if (access(".", W_OK) != 0) {
900526
+		isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
900526
+			      NS_LOGMODULE_SERVER, ISC_LOG_DEBUG(1),
900526
+			      "the working directory is not writable");
900526
+	}
900526
+
900526
+	/*
900526
 	 * Set the default value of the query logging flag depending
900526
 	 * whether a "queries" category has been defined.  This is
900526
 	 * a disgusting hack, but we need to do this for BIND 8