summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-02 11:32:40 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-02 11:32:40 -0500
commit3ef21542b20bc62760a423aebeebb4c9e014131c (patch)
treee41e0315db8cbe774344f36ac35732ebccd3f0b7 /src
parentce954c03198e0155eb9b8bf421e94b161d40b5e6 (diff)
systemctl: do not prepend arg_root twice when catting units
The paths in lookup_paths already contain the arg_root prefix. Fixes #5190.
Diffstat (limited to 'src')
-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 8f80559baf..313e47431b 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -2484,7 +2484,7 @@ static int unit_file_find_path(LookupPaths *lp, const char *unit_name, char **un
_cleanup_free_ char *path = NULL, *lpath = NULL;
int r;
- path = path_join(arg_root, *p, unit_name);
+ path = path_join(NULL, *p, unit_name);
if (!path)
return log_oom();