]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
passwd-file: Give a better error message if args (path) is empty.
authorTimo Sirainen <tss@iki.fi>
Sun, 24 Jan 2010 20:58:45 +0000 (22:58 +0200)
committerTimo Sirainen <tss@iki.fi>
Sun, 24 Jan 2010 20:58:45 +0000 (22:58 +0200)
--HG--
branch : HEAD

src/auth/passdb-passwd-file.c
src/auth/userdb-passwd-file.c

index 413f0344e8b0b8c5b6632066fe7e5a2d58a28075..3de7bd27e848cd8d3bba72704a3e6235869a40f4 100644 (file)
@@ -143,6 +143,9 @@ passwd_file_preinit(struct auth_passdb *auth_passdb, const char *args)
                        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;
index 535f354ba435c10d995ae032327d22a35e109b20..35e53e958fd24676beb66e5190a9f891290f062d 100644 (file)
@@ -174,6 +174,9 @@ passwd_file_preinit(struct auth_userdb *auth_userdb, const char *args)
                }
        }
 
+       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;