sysctl: check correct error code

This commit is contained in:
Lennart Poettering
2020-05-14 20:49:21 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent 4df4df5b56
commit c53ce14dfc
+1 -1
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 {