]> git.ipfire.org Git - thirdparty/systemd.git/commit
tmpfiles: ignore EINVAL with --graceful
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 27 Oct 2023 19:46:18 +0000 (21:46 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 28 Oct 2023 09:14:07 +0000 (10:14 +0100)
commitf939a403ca93a01fc677af9f7757d89f81e0fc37
treec71cb729107caf5bf37de2517c8ef5b954ec03dc
parent3ad5aedadcfeebd2df65faf25a08149c93d20461
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
src/tmpfiles/tmpfiles.c