diff options
author | Franck Bui <fbui@suse.com> | 2016-11-30 18:27:42 +0100 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2016-11-30 18:27:42 +0100 |
commit | c5024cd05c194b93ae960bf38e567d3d998f2a03 (patch) | |
tree | 6d1ad736c3d0b49ceab3d9c962f835042f62fb9f | |
parent | 730389b6dc0c601884781da319086e89da5be378 (diff) |
systemctl: fix 'is-enabled' exit status on failure when executed in chroot (#4773)
-rw-r--r-- | src/systemctl/systemctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index ed1c7178b5..c3cb8ef108 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -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, |