diff src/masqmail.c @ 46:3cb6f383f07e

fixed tests/local.sh commented unnecessary lines in config only out (should be polished) {log,mail,spool}_dir require absolute paths
author meillo@marmaro.de
date Wed, 19 May 2010 13:33:05 +0200
parents 9fb7ddbaf129
children ad034b57f3b2
line wrap: on
line diff
--- a/src/masqmail.c	Mon May 17 13:16:07 2010 +0200
+++ b/src/masqmail.c	Wed May 19 13:33:05 2010 +0200
@@ -629,6 +629,13 @@
 	if (debug_level >= 0)  /* if >= 0, it was given by argument */
 		conf.debug_level = debug_level;
 
+	/* It appears that changing to / ensures that we are never in
+	   a directory which we cannot access. This situation could be
+	   possible after changing identity.
+	   Maybe we should only change to / if we not run as user, to
+	   allow relative paths for log files in test setups for
+	   instance.
+	*/
 	chdir("/");
 
 	if (!conf.run_as_user) {