mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-03 23:38:39 +00:00
systemctl: obey --state in list-unit-files
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user