From: Timo Sirainen Date: Wed, 14 Dec 2011 08:55:11 +0000 (+0200) Subject: auth: Don't die if passwd-file can't open the file. X-Git-Tag: 2.1.rc2~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3028321ff4ff6a14a77018bcf5359a15e2ce1ebd;p=thirdparty%2Fdovecot%2Fcore.git auth: Don't die if passwd-file can't open the file. The file is parsed after we already sent "we're ok" reply to master, so dying triggers infinite restarts. --- diff --git a/src/auth/db-passwd-file.c b/src/auth/db-passwd-file.c index a9fe8c5b47..2d0c690e89 100644 --- a/src/auth/db-passwd-file.c +++ b/src/auth/db-passwd-file.c @@ -334,8 +334,7 @@ void db_passwd_file_parse(struct db_passwd_file *db) { if (db->default_file != NULL && db->default_file->stamp == 0) { /* no variables, open the file immediately */ - if (!passwd_file_open(db->default_file)) - exit(FATAL_DEFAULT); + (void)passwd_file_open(db->default_file); } }