diff src/auth/userdb-passwd-file.c @ 9529:4b0ec8160ff4 HEAD

passwd-file: Give a better error message if args (path) is empty.
author Timo Sirainen <tss@iki.fi>
date Sun, 24 Jan 2010 22:58:45 +0200
parents b9faf4db2a9f
children 00cd9aacd03c
line wrap: on
line diff
--- 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 @@
 		}
 	}
 
+	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;