[dovecot-cvs] dovecot/src/auth userdb.c,1.8,1.9 passdb.c,1.16,1.17
cras at procontrol.fi
cras at procontrol.fi
Wed Jun 23 18:02:52 EEST 2004
Update of /home/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv1857/src/auth
Modified Files:
userdb.c passdb.c
Log Message:
skip extra whitespace between "dbtype arguments"
Index: userdb.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/userdb.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- userdb.c 10 May 2004 01:47:09 -0000 1.8
+++ userdb.c 23 Jun 2004 15:02:50 -0000 1.9
@@ -25,6 +25,9 @@
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 @@
/* initialize */
if (userdb->init != NULL)
- userdb->init(args != NULL ? args+1 : "");
+ userdb->init(args);
}
void userdb_deinit(void)
Index: passdb.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/passdb.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- passdb.c 18 Jun 2004 03:40:12 -0000 1.16
+++ passdb.c 23 Jun 2004 15:02:50 -0000 1.17
@@ -104,6 +104,9 @@
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 @@
/* initialize */
if (passdb->init != NULL)
- passdb->init(args != NULL ? args+1 : "");
+ passdb->init(args);
mech_list_verify_passdb(passdb, name);
}
More information about the dovecot-cvs
mailing list