From: Zbigniew Jędrzejewski-Szmek Date: Thu, 2 Feb 2017 16:32:40 +0000 (-0500) Subject: systemctl: do not prepend arg_root twice when catting units X-Git-Tag: v233~174^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3ef21542b20bc62760a423aebeebb4c9e014131c;p=thirdparty%2Fsystemd.git systemctl: do not prepend arg_root twice when catting units The paths in lookup_paths already contain the arg_root prefix. Fixes #5190. --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 8f80559bafa..313e47431b1 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();