[dovecot-cvs] dovecot/src/imap main.c,1.84,1.85

tss at dovecot.org tss at dovecot.org
Thu Feb 15 11:39:30 UTC 2007


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv20479

Modified Files:
	main.c 
Log Message:
mail_debug=yes: Log also home directory.



Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/main.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -d -r1.84 -r1.85
--- main.c	15 Dec 2006 16:55:31 -0000	1.84
+++ main.c	15 Feb 2007 11:39:27 -0000	1.85
@@ -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) {



More information about the dovecot-cvs mailing list