diff options
author | Luca Boccassi <bluca@debian.org> | 2021-01-05 14:44:26 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-01-06 17:39:18 +0100 |
commit | bf3b428f73eb51f4abb64a80ea5be346b9eeb2fe (patch) | |
tree | 3cede77214648fcd069d4a6f8ceecf55500017ce /src | |
parent | update TODO (diff) | |
download | systemd-bf3b428f73eb51f4abb64a80ea5be346b9eeb2fe.tar.xz systemd-bf3b428f73eb51f4abb64a80ea5be346b9eeb2fe.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/systemctl/systemctl-is-enabled.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl-is-enabled.c b/src/systemctl/systemctl-is-enabled.c index 02ef8df86e..babd5902c9 100644 --- a/src/systemctl/systemctl-is-enabled.c +++ b/src/systemctl/systemctl-is-enabled.c @@ -120,7 +120,7 @@ int unit_is_enabled(int argc, char *argv[], void *userdata) { if (r < 0) return bus_log_parse_error(r); - if (STR_IN_SET(s, "enabled", "enabled-runtime", "static", "indirect", "generated")) + if (STR_IN_SET(s, "enabled", "enabled-runtime", "static", "alias", "indirect", "generated")) enabled = true; if (!arg_quiet) { |