[dovecot-cvs] dovecot/src/imap main.c,1.59,1.60

cras at dovecot.org cras at dovecot.org
Wed Dec 29 21:24:02 EET 2004


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

Modified Files:
	main.c 
Log Message:
Print effective uid/gid when mail_debug is enabled.



Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/main.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- main.c	9 Nov 2004 16:54:31 -0000	1.59
+++ main.c	29 Dec 2004 19:24:00 -0000	1.60
@@ -140,6 +140,11 @@
 			i_fatal("USER environment missing");
 	}
 
+	if (getenv("DEBUG") != NULL) {
+		i_info("Effective uid=%s, gid=%s",
+		       dec2str(geteuid()), dec2str(getegid()));
+	}
+
 	capability_string = str_new(default_pool, sizeof(CAPABILITY_STRING)+32);
 	str_append(capability_string, CAPABILITY_STRING);
 



More information about the dovecot-cvs mailing list