mirror of
https://github.com/systemd/systemd.git
synced 2025-01-03 05:18:09 +03:00
shared: Revert commit 49fe5c099
in parts for function parse_acl.
Too much code has been removed while replacing startswith with STARTSWITH_SET so that every ACL specified e.g. in tmpfiles.d was parsed as a default ACL.
This commit is contained in:
parent
19632f6dbb
commit
f2ea9cc746
@ -220,10 +220,10 @@ int parse_acl(const char *text, acl_t *acl_access, acl_t *acl_default, bool want
|
||||
char *p;
|
||||
|
||||
p = STARTSWITH_SET(*entry, "default:", "d:");
|
||||
if (!p)
|
||||
p = *entry;
|
||||
|
||||
r = strv_push(&d, p);
|
||||
if (p)
|
||||
r = strv_push(&d, p);
|
||||
else
|
||||
r = strv_push(&a, *entry);
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user