[dovecot-cvs] dovecot/src/deliver deliver.c,1.20.2.31,1.20.2.32
tss at dovecot.org
tss at dovecot.org
Sun Mar 11 23:58:14 EET 2007
Update of /var/lib/cvs/dovecot/src/deliver
In directory talvi:/tmp/cvs-serv10053
Modified Files:
Tag: branch_1_0
deliver.c
Log Message:
failure_exit_callback hook was set too late, so if log opening failed it
exited with wrong exit code.
Index: deliver.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/deliver/deliver.c,v
retrieving revision 1.20.2.31
retrieving revision 1.20.2.32
diff -u -d -r1.20.2.31 -r1.20.2.32
--- deliver.c 6 Mar 2007 13:14:06 -0000 1.20.2.31
+++ deliver.c 11 Mar 2007 21:58:12 -0000 1.20.2.32
@@ -420,6 +420,8 @@
{
const char *prefix, *log_path, *stamp;
+ i_set_failure_exit_callback(failure_exit_callback);
+
prefix = t_strdup_printf("deliver(%s)", username);
log_path = getenv("LOG_PATH");
if (log_path == NULL || *log_path == '\0') {
@@ -438,8 +440,6 @@
if (log_path != NULL && *log_path != '\0')
i_set_info_file(log_path);
- i_set_failure_exit_callback(failure_exit_callback);
-
stamp = getenv("LOG_TIMESTAMP");
if (stamp == NULL)
stamp = DEFAULT_FAILURE_STAMP_FORMAT;
More information about the dovecot-cvs
mailing list