mirror of
https://github.com/systemd/systemd.git
synced 2024-11-30 13:53:39 +08:00
systemctl: fix 'is-enabled' exit status on failure when executed in chroot (#4773)
This commit is contained in:
parent
730389b6dc
commit
c5024cd05c
@ -6438,7 +6438,7 @@ static int unit_is_enabled(int argc, char *argv[], void *userdata) {
|
||||
|
||||
r = unit_file_get_state(arg_scope, arg_root, *name, &state);
|
||||
if (r < 0)
|
||||
return log_error_errno(state, "Failed to get unit file state for %s: %m", *name);
|
||||
return log_error_errno(r, "Failed to get unit file state for %s: %m", *name);
|
||||
|
||||
if (IN_SET(state,
|
||||
UNIT_FILE_ENABLED,
|
||||
|
Loading…
Reference in New Issue
Block a user