From: Zbigniew Jędrzejewski-Szmek Date: Thu, 30 Apr 2020 16:45:08 +0000 (+0200) Subject: systemctl: fix --root support in querying presets X-Git-Tag: v246-rc1~439^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c39b7821f6d24d0b096ee347c6e1e2708391438f;p=thirdparty%2Fsystemd.git systemctl: fix --root support in querying presets We would always look on the host, ignoring --root. --- 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();