mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
portable: fix error handling
This commit is contained in:
parent
d61b34f1b2
commit
99c89da02d
@ -782,7 +782,7 @@ static int install_profile_dropin(
|
||||
|
||||
r = find_profile(profile, m->name, &from);
|
||||
if (r < 0) {
|
||||
if (r != ENOENT)
|
||||
if (r != -ENOENT)
|
||||
return log_debug_errno(errno, "Profile '%s' is not accessible: %m", profile);
|
||||
|
||||
log_debug_errno(errno, "Skipping link to profile '%s', as it does not exist: %m", profile);
|
||||
|
Loading…
Reference in New Issue
Block a user