From: Timo Sirainen Date: Wed, 23 Jun 2004 15:02:50 +0000 (+0300) Subject: skip extra whitespace between "dbtype arguments" X-Git-Tag: 1.1.alpha1~3874 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0727e38ac12efb8963a339daf56255e2be1f29fc;p=thirdparty%2Fdovecot%2Fcore.git skip extra whitespace between "dbtype arguments" --HG-- branch : HEAD --- diff --git a/src/auth/passdb.c b/src/auth/passdb.c index e1e1de1d43..f62689d720 100644 --- a/src/auth/passdb.c +++ b/src/auth/passdb.c @@ -104,6 +104,9 @@ void passdb_init(void) args = strchr(name, ' '); name = t_strcut(name, ' '); + while (args != NULL && (*args == ' ' || *args == '\t')) + args++; + #ifdef PASSDB_PASSWD if (strcasecmp(name, "passwd") == 0) passdb = &passdb_passwd; @@ -157,7 +160,7 @@ void passdb_init(void) /* initialize */ if (passdb->init != NULL) - passdb->init(args != NULL ? args+1 : ""); + passdb->init(args); mech_list_verify_passdb(passdb, name); } diff --git a/src/auth/userdb.c b/src/auth/userdb.c index 3ab1f1906b..9395b1e6e9 100644 --- a/src/auth/userdb.c +++ b/src/auth/userdb.c @@ -25,6 +25,9 @@ void userdb_init(void) args = strchr(name, ' '); name = t_strcut(name, ' '); + while (args != NULL && (*args == ' ' || *args == '\t')) + args++; + #ifdef USERDB_PASSWD if (strcasecmp(name, "passwd") == 0) userdb = &userdb_passwd; @@ -66,7 +69,7 @@ void userdb_init(void) /* initialize */ if (userdb->init != NULL) - userdb->init(args != NULL ? args+1 : ""); + userdb->init(args); } void userdb_deinit(void)