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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user