systemctl: fix --root support in querying presets

We would always look on the host, ignoring --root.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-04-30 18:45:08 +02:00
parent 4cb1015e6b
commit c39b7821f6

View file

@ -1478,7 +1478,7 @@ static int output_unit_file_list(const UnitFileList *units, unsigned c) {
id = basename(u->path);
r = unit_file_query_preset(arg_scope, NULL, id);
r = unit_file_query_preset(arg_scope, arg_root, id);
if (r < 0) {
unit_preset_str = "n/a";
on_preset_color = underline ? on_underline : ansi_normal();