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:
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 New Issue
Block a user