--- src/systemctl/systemctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 727be58..2dac67c 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -6644,7 +6644,7 @@ found: } else { if (running_in_chroot() > 0) { log_info("Running in chroot, ignoring request."); - return 0; + return -ENOTSUP; } if ((verb->bus != FORCE || arg_force <= 0) && !bus) { @@ -6895,7 +6895,7 @@ int main(int argc, char*argv[]) { if (running_in_chroot() > 0 && arg_action != ACTION_SYSTEMCTL) { log_info("Running in chroot, ignoring request."); - r = 0; + r = -ENOTSUP; goto finish; } -- 2.0.0 _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel