1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 19:21:53 +03:00

systemctl: obey --state in list-unit-files

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2014-10-29 22:51:00 -04:00
parent 6c71341aee
commit fec1530e6b

View File

@ -1268,6 +1268,11 @@ next:
return false;
}
if (!strv_isempty(arg_states)) {
if (!strv_find(arg_states, unit_file_state_to_string(u->state)))
return false;
}
return true;
}