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

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


details:   http://hg.dovecot.org/dovecot-1.2/rev/75aed0ddfcb1
changeset: 8792:75aed0ddfcb1
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Feb 26 18:45:50 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 93c25cfe2760 -r 75aed0ddfcb1 src/pop3/main.c
--- 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 @@ 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) {


More information about the dovecot-cvs mailing list