1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-13 17:18:18 +03:00

sysctl: check correct error code

This commit is contained in:
Lennart Poettering 2020-05-12 23:43:48 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 4df4df5b56
commit c53ce14dfc

View File

@ -140,7 +140,7 @@ static int apply_all(OrderedHashmap *sysctl_options) {
k = glob_extend(&paths, pattern);
if (k < 0) {
if (option->ignore_failure || ERRNO_IS_PRIVILEGE(r))
if (option->ignore_failure || ERRNO_IS_PRIVILEGE(k))
log_debug_errno(k, "Failed to resolve glob '%s', ignoring: %m",
option->key);
else {