dovecot-1.1: pop3: When mail_debug=yes, log also home directory.

dovecot at dovecot.org dovecot at dovecot.org
Fri Feb 27 01:47:07 EET 2009


details:   http://hg.dovecot.org/dovecot-1.1/rev/b58f72ccdfe3
changeset: 8176:b58f72ccdfe3
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Feb 26 18:36:06 2009 -0500
description:
pop3: When mail_debug=yes, log also home directory.

diffstat:

1 file changed, 6 insertions(+), 2 deletions(-)
src/pop3/main.c |    8 ++++++--

diffs (18 lines):

diff -r 8c99c4d2eaad -r b58f72ccdfe3 src/pop3/main.c
--- a/src/pop3/main.c	Thu Feb 26 17:43:21 2009 -0500
+++ b/src/pop3/main.c	Thu Feb 26 18:36:06 2009 -0500
@@ -197,8 +197,12 @@ static int 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) {


More information about the dovecot-cvs mailing list