systemctl: have is-enabled return success for aliases when calling into pid1 too
authorLuca Boccassi <bluca@debian.org>
Tue, 5 Jan 2021 13:44:26 +0000 (13:44 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 2 Feb 2021 13:52:53 +0000 (14:52 +0100)
commit7c63e5ed58fc5d0cf2653e614fee2765b495085a
tree2fedfc834e1fc1414fbee02c09726231c60ba220
parentd0b76f0738283866cd575bedba164aae6d3920b0
systemctl: have is-enabled return success for aliases when calling into pid1 too

commit 15d7ab87c4e5917f5788f1f8dce327a1e272bea3 introduced the
change to add an 'alias' state, but it was wired to systemctl
only when running in 'client-side' mode. Return success as
expected and documented also when running in 'server-mode'.

Fixes https://github.com/systemd/systemd/issues/18134

(cherry picked from commit bf3b428f73eb51f4abb64a80ea5be346b9eeb2fe)
src/systemctl/systemctl-is-enabled.c