summaryrefslogtreecommitdiffstats
path: root/src/systemctl/systemctl.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-04-30 18:45:08 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-05-05 18:05:32 +0200
commitc39b7821f6d24d0b096ee347c6e1e2708391438f (patch)
treec9bd6854a01a9b54e06e1ff62accdbcbadae3d2a /src/systemctl/systemctl.c
parentsystemctl: refuse online-only ops with --root (diff)
downloadsystemd-c39b7821f6d24d0b096ee347c6e1e2708391438f.tar.xz
systemd-c39b7821f6d24d0b096ee347c6e1e2708391438f.zip
systemctl: fix --root support in querying presets
We would always look on the host, ignoring --root.
Diffstat (limited to 'src/systemctl/systemctl.c')
-rw-r--r--src/systemctl/systemctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 077609f4de..3653e5c81b 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();