[dovecot-cvs] dovecot/src/auth mech.c,1.15,1.16 userdb-static.c,1.4,1.5

cras at procontrol.fi cras at procontrol.fi
Mon Oct 20 08:15:48 EEST 2003


Update of /home/cvs/dovecot/src/auth
In directory danu:/tmp/cvs-serv771/auth

Modified Files:
	mech.c userdb-static.c 
Log Message:
Added t_strsplit_spaces().



Index: mech.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/mech.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- mech.c	21 Sep 2003 16:21:36 -0000	1.15
+++ mech.c	20 Oct 2003 04:15:16 -0000	1.16
@@ -238,7 +238,7 @@
 	if (env == NULL || *env == '\0')
 		i_fatal("MECHANISMS environment is unset");
 
-	mechanisms = t_strsplit(env, " ");
+	mechanisms = t_strsplit_spaces(env, " ");
 	while (*mechanisms != NULL) {
 		if (strcasecmp(*mechanisms, "PLAIN") == 0)
 			mech_register_module(&mech_plain);
@@ -267,7 +267,7 @@
 	env = getenv("REALMS");
 	if (env == NULL)
 		env = "";
-	auth_realms = t_strsplit(env, " ");
+	auth_realms = t_strsplit_spaces(env, " ");
 
 	default_realm = getenv("DEFAULT_REALM");
 	if (default_realm != NULL && *default_realm == '\0')

Index: userdb-static.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/userdb-static.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- userdb-static.c	18 Feb 2003 19:11:26 -0000	1.4
+++ userdb-static.c	20 Oct 2003 04:15:16 -0000	1.5
@@ -43,10 +43,7 @@
 	static_gid = 0;
 	static_home_template = NULL;
 
-	for (tmp = t_strsplit(args, " "); *tmp != NULL; tmp++) {
-		if (**tmp == '\0')
-			continue;
-
+	for (tmp = t_strsplit_spaces(args, " "); *tmp != NULL; tmp++) {
 		if (strncasecmp(*tmp, "uid=", 4) == 0)
 			static_uid = atoi(*tmp + 4);
 		else if (strncasecmp(*tmp, "gid=", 4) == 0)



More information about the dovecot-cvs mailing list