From c39b7821f6d24d0b096ee347c6e1e2708391438f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 30 Apr 2020 18:45:08 +0200 Subject: [PATCH] systemctl: fix --root support in querying presets We would always look on the host, ignoring --root. --- src/systemctl/systemctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 077609f4de6..3653e5c81bd 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -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(); -- 2.47.3