From a9d103504e67fe02abfc726fa68ebe384284a90e Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 26 Feb 2009 18:45:50 -0500 Subject: [PATCH] pop3: When mail_debug=yes, log also home directory. --HG-- branch : HEAD --- src/pop3/main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) { -- 2.47.3