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
1 changed files with 1 additions and 1 deletions

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 {