[dovecot-cvs] dovecot/src/imap main.c,1.77.2.2,1.77.2.3
tss at dovecot.org
tss at dovecot.org
Thu Feb 15 11:39:26 UTC 2007
Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv20475
Modified Files:
Tag: branch_1_0
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.77.2.2
retrieving revision 1.77.2.3
diff -u -d -r1.77.2.2 -r1.77.2.3
--- main.c 10 Aug 2006 18:46:20 -0000 1.77.2.2
+++ main.c 15 Feb 2007 11:39:24 -0000 1.77.2.3
@@ -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