mirror of
https://github.com/systemd/systemd
synced 2024-10-07 00:30:59 +00:00
sysctl: check correct error code
This commit is contained in:
parent
4df4df5b56
commit
c53ce14dfc
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue