dovecot-1.2: dovecot --exec-mail was broken.

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 21 18:36:38 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/0f04c7da33f1
changeset: 9386:0f04c7da33f1
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 21 18:36:25 2009 +0300
description:
dovecot --exec-mail was broken.

diffstat:

1 file changed, 3 insertions(+), 2 deletions(-)
src/master/main.c |    5 +++--

diffs (22 lines):

diff -r c43bc2a2b44d -r 0f04c7da33f1 src/master/main.c
--- a/src/master/main.c	Sun Sep 13 22:12:35 2009 -0400
+++ b/src/master/main.c	Mon Sep 21 18:36:25 2009 +0300
@@ -614,8 +614,6 @@ int main(int argc, char *argv[])
 			sizeof(ssl_manual_key_password));
 	} T_END;
 
-	open_std_fds();
-
 	/* save TZ environment. AIX depends on it to get the timezone
 	   correctly. */
 	env_tz = getenv("TZ");
@@ -636,6 +634,9 @@ int main(int argc, char *argv[])
 		mail_process_exec(exec_protocol, exec_args);
 	}
 
+	/* closes stdin/stdout, must be after --exec-mail handling */
+	open_std_fds();
+
 	/* log all errors to both stderr and log file until we've finished
 	   startup. */
 	set_tee_logfile(settings_root->defaults);


More information about the dovecot-cvs mailing list