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)
committerLennart Poettering <lennart@poettering.net>
Wed, 6 Jan 2021 16:39:18 +0000 (17:39 +0100)
commitbf3b428f73eb51f4abb64a80ea5be346b9eeb2fe
tree3cede77214648fcd069d4a6f8ceecf55500017ce
parent0ec1dc5ba395d797a0f7eaec88ba58e1b99a2ef3
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
src/systemctl/systemctl-is-enabled.c