changeset 7317:92cd0509b2b9 HEAD

Ignore spaces and TABs at the end of ACL lines.
author Timo Sirainen <tss@iki.fi>
date Sun, 02 Mar 2008 06:40:31 +0200
parents 258477a3f1e7
children be991f857c70
files src/plugins/acl/acl-backend-vfile.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/acl/acl-backend-vfile.c	Sun Mar 02 06:34:34 2008 +0200
+++ b/src/plugins/acl/acl-backend-vfile.c	Sun Mar 02 06:40:31 2008 +0200
@@ -157,7 +157,7 @@
 		acl++;
 
 	t_array_init(&rights, 64);
-	for (; *acl != '\0' && *acl != ':'; acl++) {
+	while (*acl != '\0' && *acl != ' ' && *acl != '\t' && *acl != ':') {
 		for (i = 0; acl_letter_map[i].letter != '\0'; i++) {
 			if (acl_letter_map[i].letter == *acl)
 				break;
@@ -169,7 +169,9 @@
 		}
 
 		array_append(&rights, &acl_letter_map[i].name, 1);
+		acl++;
 	}
+	while (*acl == ' ' || *acl == '\t') acl++;
 
 	if (*acl != '\0') {
 		/* parse our own extended ACLs */