dovecot-2.1: auth: Don't die if passwd-file can't open the file.

dovecot at dovecot.org dovecot at dovecot.org
Wed Dec 14 10:56:06 EET 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/e7ec5649655a
changeset: 13856:e7ec5649655a
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Dec 14 10:55:11 2011 +0200
description:
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.

diffstat:

 src/auth/db-passwd-file.c |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (13 lines):

diff -r 0bdbb8d99492 -r e7ec5649655a src/auth/db-passwd-file.c
--- a/src/auth/db-passwd-file.c	Mon Dec 12 08:45:32 2011 +0200
+++ b/src/auth/db-passwd-file.c	Wed Dec 14 10:55:11 2011 +0200
@@ -334,8 +334,7 @@
 {
 	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);
 	}
 }
 


More information about the dovecot-cvs mailing list