mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
tmpfiles: ignore EINVAL with --graceful
Add EINVAL to the list of ignored errnos, since acl_from_text() returns EINVAL if it can't translate the given string. ~# cat /tmp/tmpfiles-test.conf a+ /tmp/foo - - - - default:group:foo:rwx ~# build/systemd-tmpfiles /tmp/tmpfiles-test.conf --create --graceful Failed to parse ACL "default:group:foo:rwx", ignoring: Invalid argument Resolves: #29742
This commit is contained in:
committed by
Luca Boccassi
parent
3ad5aedadc
commit
f939a403ca
@@ -1161,7 +1161,7 @@ static int parse_acls_from_arg(Item *item) {
|
||||
r = parse_acl(item->argument, &item->acl_access, &item->acl_access_exec,
|
||||
&item->acl_default, !item->append_or_force);
|
||||
if (r < 0)
|
||||
log_full_errno(arg_graceful && IN_SET(r, -ENOENT, -ESRCH) ? LOG_DEBUG : LOG_WARNING,
|
||||
log_full_errno(arg_graceful && IN_SET(r, -EINVAL, -ENOENT, -ESRCH) ? LOG_DEBUG : LOG_WARNING,
|
||||
r, "Failed to parse ACL \"%s\", ignoring: %m", item->argument);
|
||||
#else
|
||||
log_warning("ACLs are not supported, ignoring.");
|
||||
|
||||
Reference in New Issue
Block a user