From: Timo Sirainen Date: Thu, 13 May 2010 10:47:24 +0000 (+0200) Subject: doveconf: Don't crash if -c points to nonexisting file. X-Git-Tag: 2.0.beta6~228 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b89995a6c2717eb090b7dfcac0cc013b5ab84b0d;p=thirdparty%2Fdovecot%2Fcore.git doveconf: Don't crash if -c points to nonexisting file. --HG-- branch : HEAD --- diff --git a/src/config/doveconf.c b/src/config/doveconf.c index bc14f12d96..8129e8ec48 100644 --- a/src/config/doveconf.c +++ b/src/config/doveconf.c @@ -555,7 +555,7 @@ int main(int argc, char *argv[]) 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) {