Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5133:cbc8f65d887b HEAD
mail_debug=yes: Log also home directory.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 15 Feb 2007 13:39:27 +0200 |
parents | c4fab2513f50 |
children | b2070dffa074 |
files | src/imap/main.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/main.c Thu Feb 15 13:38:48 2007 +0200 +++ b/src/imap/main.c Thu Feb 15 13:39:27 2007 +0200 @@ -165,8 +165,12 @@ } 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) {