chiark / gitweb /
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)
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.


No differences found