diff options
Diffstat (limited to '')
-rw-r--r-- | src/shared/acl-util.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/shared/acl-util.c b/src/shared/acl-util.c index 1eaf653103..6f0657174c 100644 --- a/src/shared/acl-util.c +++ b/src/shared/acl-util.c @@ -219,14 +219,11 @@ int parse_acl(const char *text, acl_t *acl_access, acl_t *acl_default, bool want STRV_FOREACH(entry, split) { char *p; - p = startswith(*entry, "default:"); + p = STARTSWITH_SET(*entry, "default:", "d:"); if (!p) - p = startswith(*entry, "d:"); + p = *entry; - if (p) - r = strv_push(&d, p); - else - r = strv_push(&a, *entry); + r = strv_push(&d, p); if (r < 0) return r; } |