From: Timo Sirainen Date: Thu, 26 Feb 2009 23:45:50 +0000 (-0500) Subject: pop3: When mail_debug=yes, log also home directory. X-Git-Tag: 1.2.beta2~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a9d103504e67fe02abfc726fa68ebe384284a90e;p=thirdparty%2Fdovecot%2Fcore.git pop3: When mail_debug=yes, log also home directory. --HG-- branch : HEAD --- diff --git a/src/pop3/main.c b/src/pop3/main.c index 0aeb51c957..2c92a51270 100644 --- a/src/pop3/main.c +++ b/src/pop3/main.c @@ -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) {