dovecot-1.2: passwd-file: Give a better error message if args (p...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Jan 24 22:59:23 EET 2010
details: http://hg.dovecot.org/dovecot-1.2/rev/4b0ec8160ff4
changeset: 9529:4b0ec8160ff4
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 142c935e44d6 -r 4b0ec8160ff4 src/auth/passdb-passwd-file.c
--- a/src/auth/passdb-passwd-file.c Fri Jan 22 18:58:51 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 142c935e44d6 -r 4b0ec8160ff4 src/auth/userdb-passwd-file.c
--- a/src/auth/userdb-passwd-file.c Fri Jan 22 18:58:51 2010 +0200
+++ b/src/auth/userdb-passwd-file.c Sun Jan 24 22:58:45 2010 +0200
@@ -93,6 +93,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