* setfacl.c (getaclentry): Allow extra colon in mask and other entries.
This commit is contained in:
parent
2d077d7c6d
commit
1122b3e64e
@ -1,3 +1,7 @@
|
|||||||
|
2011-04-18 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* setfacl.c (getaclentry): Allow extra colon in mask and other entries.
|
||||||
|
|
||||||
2011-04-12 Jon TURNEY <jon.turney@dronecode.org.uk>
|
2011-04-12 Jon TURNEY <jon.turney@dronecode.org.uk>
|
||||||
|
|
||||||
* utils.sgml (strace): Fix a pair of exchanged lines in usage text.
|
* utils.sgml (strace): Fix a pair of exchanged lines in usage text.
|
||||||
|
@ -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 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 so, skip it, otherwise it's the name of a user or group. */
|
||||||
if (!(ace->a_type & (USER_OBJ | GROUP_OBJ)))
|
if (!(ace->a_type & (USER_OBJ | GROUP_OBJ)))
|
||||||
;
|
{
|
||||||
|
/* Mask and other entries may contain an extra colon. */
|
||||||
|
if (*c == ':')
|
||||||
|
++c;
|
||||||
|
}
|
||||||
else if (*c == ':')
|
else if (*c == ':')
|
||||||
++c;
|
++c;
|
||||||
else if (*c)
|
else if (*c)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user