X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsystemctl%2Fsystemctl.c;h=78b7c963e80493825c71cc58a4f0f06fffcf4763;hb=aedd401;hp=c903c54e9b7ae09274595ebb05a5048ed8b5d060;hpb=cda134ab1eac84f874aacf8e885a07112a7fd5ce;p=elogind.git diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index c903c54e9..78b7c963e 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -5660,7 +5660,8 @@ static int unit_is_enabled(sd_bus *bus, char **args) { if (state == UNIT_FILE_ENABLED || state == UNIT_FILE_ENABLED_RUNTIME || - state == UNIT_FILE_STATIC) + state == UNIT_FILE_STATIC || + state == UNIT_FILE_INDIRECT) enabled = true; if (!arg_quiet) @@ -5690,9 +5691,7 @@ static int unit_is_enabled(sd_bus *bus, char **args) { if (r < 0) return bus_log_parse_error(r); - if (streq(s, "enabled") || - streq(s, "enabled-runtime") || - streq(s, "static")) + if (STR_IN_SET(s, "enabled", "enabled-runtime", "static", "indirect")) enabled = true; if (!arg_quiet)