mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-09-16 17:45:52 +03:00
systemctl: have is-enabled return success for aliases when calling into pid1 too
commit15d7ab87c4
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 commitbf3b428f73
) (cherry picked from commit7c63e5ed58
)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
4f3943ed3b
commit
7d3e6e7b72
@@ -7161,7 +7161,7 @@ static 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) {
|
||||
|
Reference in New Issue
Block a user