From: Lennart Poettering Date: Tue, 12 May 2020 21:43:48 +0000 (+0200) Subject: sysctl: check correct error code X-Git-Tag: v246-rc1~366 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c53ce14dfce176a51c98f5d89393acbcc3ec6cf1;p=thirdparty%2Fsystemd.git sysctl: check correct error code --- diff --git a/src/sysctl/sysctl.c b/src/sysctl/sysctl.c index 0cdb740d218..3b3305d7f68 100644 --- a/src/sysctl/sysctl.c +++ b/src/sysctl/sysctl.c @@ -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 {