From 1122b3e64e8ebca2b29b1e6e3e34bc6dc4dcc6d4 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 18 Apr 2011 10:23:21 +0000 Subject: * setfacl.c (getaclentry): Allow extra colon in mask and other entries. --- winsup/utils/setfacl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'winsup/utils/setfacl.c') diff --git a/winsup/utils/setfacl.c b/winsup/utils/setfacl.c index 35689890c..d9d645d3c 100644 --- a/winsup/utils/setfacl.c +++ b/winsup/utils/setfacl.c @@ -111,7 +111,11 @@ getaclentry (action_t action, char *c, aclent_t *ace) /* If this is a user or group entry, check if next char is a colon char. If so, skip it, otherwise it's the name of a user or group. */ if (!(ace->a_type & (USER_OBJ | GROUP_OBJ))) - ; + { + /* Mask and other entries may contain an extra colon. */ + if (*c == ':') + ++c; + } else if (*c == ':') ++c; else if (*c) -- cgit v1.2.3