dovecot-2.0: doveconf: Don't crash if -c points to nonexisting f...

dovecot at dovecot.org dovecot at dovecot.org
Thu May 13 13:47:33 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/da5096512d54
changeset: 11302:da5096512d54
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 13 12:47:24 2010 +0200
description:
doveconf: Don't crash if -c points to nonexisting file.

diffstat:

 src/config/doveconf.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r b73e0f51dad1 -r da5096512d54 src/config/doveconf.c
--- a/src/config/doveconf.c	Thu May 13 12:07:16 2010 +0200
+++ b/src/config/doveconf.c	Thu May 13 12:47:24 2010 +0200
@@ -555,7 +555,7 @@
 			error);
 	}
 
-	if (ret <= 0 && (exec_args != NULL || ret == -2))
+	if ((ret == -1 && exec_args != NULL) || ret == 0 || ret == -2)
 		i_fatal("%s", error);
 
 	if (setting_name_filter != NULL) {


More information about the dovecot-cvs mailing list