]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pop3: When mail_debug=yes, log also home directory.
authorTimo Sirainen <tss@iki.fi>
Thu, 26 Feb 2009 23:45:50 +0000 (18:45 -0500)
committerTimo Sirainen <tss@iki.fi>
Thu, 26 Feb 2009 23:45:50 +0000 (18:45 -0500)
--HG--
branch : HEAD

src/pop3/main.c

index 0aeb51c957b57093813ecc112cc8f297fba4dd7d..2c92a51270a6ed98f59f391b10ea40bfe2afde3e 100644 (file)
@@ -197,8 +197,12 @@ static bool main_init(void)
                i_fatal("USER environment missing");
 
        if (getenv("DEBUG") != NULL) {
-               i_info("Effective uid=%s, gid=%s",
-                      dec2str(geteuid()), dec2str(getegid()));
+               const char *home;
+
+               home = getenv("HOME");
+               i_info("Effective uid=%s, gid=%s, home=%s",
+                      dec2str(geteuid()), dec2str(getegid()),
+                      home != NULL ? home : "(none)");
        }
 
        if (getenv("STDERR_CLOSE_SHUTDOWN") != NULL) {