Make the log directory only if we're not in debugging mode
authoraland <aland>
Thu, 27 Dec 2007 05:46:20 +0000 (05:46 +0000)
committeraland <aland>
Thu, 27 Dec 2007 05:46:20 +0000 (05:46 +0000)
src/main/mainconfig.c

index 3f6170b..50e0372 100644 (file)
@@ -753,7 +753,7 @@ int read_mainconfig(int reload)
         *      The first time around, ensure that we can write to the
         *      log directory.
         */
-       if (!reload) {
+       if (!reload && !debug_flag) {
                /*
                 *      We need root to do mkdir() and chown(), so we
                 *      do this before giving up root.