]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Don't die if passwd-file can't open the file.
authorTimo Sirainen <tss@iki.fi>
Wed, 14 Dec 2011 08:55:11 +0000 (10:55 +0200)
committerTimo Sirainen <tss@iki.fi>
Wed, 14 Dec 2011 08:55:11 +0000 (10:55 +0200)
The file is parsed after we already sent "we're ok" reply to master, so
dying triggers infinite restarts.

src/auth/db-passwd-file.c

index a9fe8c5b470b467a65ac4abd8206a44d7e0f7c17..2d0c690e898fa0eb4b1d0932af7f14d14cdec192 100644 (file)
@@ -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);
        }
 }