Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8792:75aed0ddfcb1 HEAD
pop3: When mail_debug=yes, log also home directory.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 26 Feb 2009 18:45:50 -0500 |
parents | 93c25cfe2760 |
children | dbf2730f76f2 |
files | src/pop3/main.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pop3/main.c Thu Feb 26 18:30:02 2009 -0500 +++ b/src/pop3/main.c Thu Feb 26 18:45:50 2009 -0500 @@ -197,8 +197,12 @@ 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) {