comparison 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
comparison
equal deleted inserted replaced
45:f0334dc87e1d 46:3cb6f383f07e
627 if (do_verbose) 627 if (do_verbose)
628 conf.do_verbose = TRUE; 628 conf.do_verbose = TRUE;
629 if (debug_level >= 0) /* if >= 0, it was given by argument */ 629 if (debug_level >= 0) /* if >= 0, it was given by argument */
630 conf.debug_level = debug_level; 630 conf.debug_level = debug_level;
631 631
632 /* It appears that changing to / ensures that we are never in
633 a directory which we cannot access. This situation could be
634 possible after changing identity.
635 Maybe we should only change to / if we not run as user, to
636 allow relative paths for log files in test setups for
637 instance.
638 */
632 chdir("/"); 639 chdir("/");
633 640
634 if (!conf.run_as_user) { 641 if (!conf.run_as_user) {
635 if (setgid(0) != 0) { 642 if (setgid(0) != 0) {
636 fprintf(stderr, "could not set gid to 0. Is the setuid bit set? : %s\n", strerror(errno)); 643 fprintf(stderr, "could not set gid to 0. Is the setuid bit set? : %s\n", strerror(errno));