masqmail

diff src/local.c @ 114:a80ebfa16cd5

better debugging output (thanks to Paolo)
author meillo@marmaro.de
date Wed, 30 Jun 2010 15:00:59 +0200
parents f671821d8222
children d1c53e76096f
line diff
     1.1 --- a/src/local.c	Wed Jun 30 13:23:49 2010 +0200
     1.2 +++ b/src/local.c	Wed Jun 30 15:00:59 2010 +0200
     1.3 @@ -70,8 +70,7 @@
     1.4  			}
     1.5  		}
     1.6  
     1.7 -		DEBUG(5) debugf("running as euid %d\n", geteuid());
     1.8 -		DEBUG(5) debugf("running as egid %d\n", getegid());
     1.9 +		DEBUG(5) debugf("running as euid %d, egid %d\n", geteuid(), getegid());
    1.10  
    1.11  		if (uid_ok && gid_ok) {
    1.12  			gchar *filename;
    1.13 @@ -168,15 +167,14 @@
    1.14  			}
    1.15  		}
    1.16  
    1.17 -		DEBUG(5) debugf("running as euid %d\n", geteuid());
    1.18 -		DEBUG(5) debugf("running as egid %d\n", getegid());
    1.19 +		DEBUG(5) debugf("running as euid %d, egid %d\n", geteuid(), getegid());
    1.20  
    1.21  		if (uid_ok && gid_ok) {
    1.22  			char *path = g_strdup_printf("%s/Maildir", pw->pw_dir);
    1.23  			struct stat statbuf;
    1.24  			int ret;
    1.25  
    1.26 -			DEBUG(5) debugf("path = %s\n", path);
    1.27 +			DEBUG(5) debugf("  path = %s\n", path);
    1.28  
    1.29  			ok = TRUE;
    1.30  			ret = stat(path, &statbuf);