[dovecot-cvs] dovecot/src/plugins/acl acl-backend-vfile.c,1.5,1.6

tss-movial at dovecot.org tss-movial at dovecot.org
Tue May 30 14:51:56 EEST 2006


Update of /var/lib/cvs/dovecot/src/plugins/acl
In directory talvi:/tmp/cvs-serv13735

Modified Files:
	acl-backend-vfile.c 
Log Message:
NULL-terminate the parsed rights



Index: acl-backend-vfile.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/acl/acl-backend-vfile.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- acl-backend-vfile.c	2 May 2006 08:56:58 -0000	1.5
+++ acl-backend-vfile.c	30 May 2006 11:51:53 -0000	1.6
@@ -132,8 +132,10 @@
 		array_append(&rights, &acl_letter_map[i].name, 1);
 	}
 
-	if (*acl == '\0')
+	if (*acl == '\0') {
+		(void)array_append_space(&rights);
 		return array_idx(&rights, 0);
+	}
 
 	/* parse our own extended ACLs */
 	i_assert(*acl == ':');
@@ -144,6 +146,7 @@
 	
 	for (; *names != NULL; names++)
 		array_append(&rights, names, 1);
+	(void)array_append_space(&rights);
 	return array_idx(&rights, 0);
 }
 



More information about the dovecot-cvs mailing list