Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/utils/setfacl.c')
-rw-r--r--winsup/utils/setfacl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/winsup/utils/setfacl.c b/winsup/utils/setfacl.c
index 56c83fee7..a3b2226c3 100644
--- a/winsup/utils/setfacl.c
+++ b/winsup/utils/setfacl.c
@@ -108,8 +108,8 @@ getaclentry (action_t action, char *c, aclent_t *ace)
return FALSE;
/* Skip to next field. */
c = c2;
- if (!*c && action != Delete)
- return FALSE;
+ if (!*c)
+ return action == Delete && (ace->a_type & CLASS_OBJ);
/* 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)))
@@ -131,8 +131,6 @@ getaclentry (action_t action, char *c, aclent_t *ace)
*c2++ = '\0';
else if (action != Delete)
return FALSE;
- else if (!(ace->a_type & ACL_DEFAULT))
- return FALSE;
/* Fetch user/group id. */
if (isdigit ((unsigned char) *c))
{