diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-09-11 01:11:32 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-09-11 01:14:25 +0200 |
commit | b5b46d599524341ddd7407e5dff1021af8ff5089 (patch) | |
tree | 05e2bb1a8800ab7800f1c7c3455d7c07cb7a1af5 /src/systemctl | |
parent | 802840582c71e9679637a4631866ce2d179f03c5 (diff) |
when determining unit file list, include invalid unit names in an "invalid" state
Diffstat (limited to 'src/systemctl')
-rw-r--r-- | src/systemctl/systemctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 98d0fcb39e..5102c8ee58 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -585,7 +585,8 @@ static void output_unit_file_list(const UnitFileList *units, unsigned c) { if (u->state == UNIT_FILE_MASKED || u->state == UNIT_FILE_MASKED_RUNTIME || - u->state == UNIT_FILE_DISABLED) { + u->state == UNIT_FILE_DISABLED || + u->state == UNIT_FILE_INVALID) { on = ansi_highlight_red(true); off = ansi_highlight_red(false); } else if (u->state == UNIT_FILE_ENABLED) { |