dovecot-2.0-sslstream: passwd-file: Give a better error message ...

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 13 02:57:38 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0-sslstream/rev/354d3b1eee03
changeset: 10575:354d3b1eee03
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Jan 24 22:58:45 2010 +0200
description:
passwd-file: Give a better error message if args (path) is empty.

diffstat:

2 files changed, 6 insertions(+)
src/auth/passdb-passwd-file.c |    3 +++
src/auth/userdb-passwd-file.c |    3 +++

diffs (26 lines):

diff -r 823356f533c5 -r 354d3b1eee03 src/auth/passdb-passwd-file.c
--- a/src/auth/passdb-passwd-file.c	Sat Jan 23 12:40:22 2010 +0200
+++ b/src/auth/passdb-passwd-file.c	Sun Jan 24 22:58:45 2010 +0200
@@ -143,6 +143,9 @@ passwd_file_preinit(struct auth_passdb *
 			i_fatal("passdb passwd-file: Unknown setting: %s", key);
 	}
 
+	if (*args == '\0')
+		i_fatal("passdb passwd-file: Missing args");
+
 	module = p_new(auth_passdb->auth->pool,
 		       struct passwd_file_passdb_module, 1);
 	module->auth = auth_passdb->auth;
diff -r 823356f533c5 -r 354d3b1eee03 src/auth/userdb-passwd-file.c
--- a/src/auth/userdb-passwd-file.c	Sat Jan 23 12:40:22 2010 +0200
+++ b/src/auth/userdb-passwd-file.c	Sun Jan 24 22:58:45 2010 +0200
@@ -174,6 +174,9 @@ passwd_file_preinit(struct auth_userdb *
 		}
 	}
 
+	if (*args == '\0')
+		i_fatal("userdb passwd-file: Missing args");
+
 	module = p_new(auth_userdb->auth->pool,
 		       struct passwd_file_userdb_module, 1);
 	module->auth = auth_userdb->auth;


More information about the dovecot-cvs mailing list