masqmail

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 diff
     1.1 --- a/src/masqmail.c	Mon May 17 13:16:07 2010 +0200
     1.2 +++ b/src/masqmail.c	Wed May 19 13:33:05 2010 +0200
     1.3 @@ -629,6 +629,13 @@
     1.4  	if (debug_level >= 0)  /* if >= 0, it was given by argument */
     1.5  		conf.debug_level = debug_level;
     1.6  
     1.7 +	/* It appears that changing to / ensures that we are never in
     1.8 +	   a directory which we cannot access. This situation could be
     1.9 +	   possible after changing identity.
    1.10 +	   Maybe we should only change to / if we not run as user, to
    1.11 +	   allow relative paths for log files in test setups for
    1.12 +	   instance.
    1.13 +	*/
    1.14  	chdir("/");
    1.15  
    1.16  	if (!conf.run_as_user) {