]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: fix return code in chroot
authorChristian Hesse <list@eworm.de>
Wed, 17 Oct 2012 14:03:49 +0000 (16:03 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 19 Oct 2012 15:34:02 +0000 (17:34 +0200)
commitdf77cdf0fccadbb5989042d43cde2f88aa9afd2c
tree2a28d9b07fcbca4073cd4bb3ab8ed566c5d303aa
parentf527b6b8e23759eabe9ebcb50b7dce412d5132d3
systemctl: fix return code in chroot

If 'systemctl enable' (and friends) is run inside chroot it always
exits with a bad return code. unit_file_enable() returns the number of
symlink rules that were supposed to be created. So resetting r to 0 and
exiting gracefully should be the correct way.
src/systemctl/systemctl.c