[dovecot-cvs] dovecot/src/deliver deliver.c,1.54,1.55

tss at dovecot.org tss at dovecot.org
Sun Mar 11 23:58:17 EET 2007


Update of /var/lib/cvs/dovecot/src/deliver
In directory talvi:/tmp/cvs-serv10027

Modified Files:
	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.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- deliver.c	8 Mar 2007 22:07:41 -0000	1.54
+++ deliver.c	11 Mar 2007 21:58:15 -0000	1.55
@@ -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