systemctl: do not prepend arg_root twice when catting units

The paths in lookup_paths already contain the arg_root prefix.

Fixes #5190.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2017-02-02 11:32:40 -05:00
parent ce954c0319
commit 3ef21542b2
+1 -1
View File
@@ -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();