projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
730389b
)
systemctl: fix 'is-enabled' exit status on failure when executed in chroot (#4773)
author
Franck Bui
<fbui@suse.com>
Wed, 30 Nov 2016 17:27:42 +0000
(18:27 +0100)
committer
Martin Pitt
<martin.pitt@ubuntu.com>
Wed, 30 Nov 2016 17:27:42 +0000
(18:27 +0100)
src/systemctl/systemctl.c
patch
|
blob
|
history
diff --git
a/src/systemctl/systemctl.c
b/src/systemctl/systemctl.c
index
ed1c717
..
c3cb8ef
100644
(file)
--- 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,