[dovecot-cvs] dovecot/src/imap main.c,1.14,1.15
cras at procontrol.fi
cras at procontrol.fi
Tue Dec 3 02:59:12 EET 2002
Update of /home/cvs/dovecot/src/imap
In directory danu:/tmp/cvs-serv23492/imap
Modified Files:
main.c
Log Message:
imap processes open syslog fd now immediately at startup, so dropping roots
and potential chrooting won't break it.
Index: main.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/main.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- main.c 3 Dec 2002 00:45:17 -0000 1.14
+++ main.c 3 Dec 2002 00:59:10 -0000 1.15
@@ -41,8 +41,8 @@
i_set_failure_file(logfile, log_prefix);
i_set_failure_timestamp_format(getenv("IMAP_LOGSTAMP"));
} else if (use_syslog) {
- /* prefix with imapd(user) */
- openlog(log_prefix, 0, LOG_MAIL);
+ /* open the syslog while we still have access to it */
+ openlog(log_prefix, LOG_NDELAY, LOG_MAIL);
i_set_panic_handler(i_syslog_panic_handler);
i_set_fatal_handler(i_syslog_fatal_handler);
More information about the dovecot-cvs
mailing list