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

cras at dovecot.org cras at dovecot.org
Tue May 30 15:18:29 EEST 2006


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

Modified Files:
      Tag: branch_1_0
	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.5.2.1
diff -u -d -r1.5 -r1.5.2.1
--- acl-backend-vfile.c	2 May 2006 08:56:58 -0000	1.5
+++ acl-backend-vfile.c	30 May 2006 12:18:25 -0000	1.5.2.1
@@ -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