mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
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.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
f527b6b8e2
commit
df77cdf0fc
@@ -3630,6 +3630,7 @@ static int enable_unit(DBusConnection *bus, char **args) {
|
||||
}
|
||||
}
|
||||
|
||||
r = 0;
|
||||
} else {
|
||||
const char *method;
|
||||
bool send_force = true, expect_carries_install_info = false;
|
||||
|
||||
Reference in New Issue
Block a user