Blame SOURCES/bind97-rh693982.patch

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