tree-wide: Get rid of prefix_roota() in favor of path_join()
We deprecated prefix_roota() in favor of chase() and path_join(). Let's finish the removal by replacing the few remaining call sites with path_join().
This commit is contained in:
@@ -1782,9 +1782,9 @@ static int install_info_add_auto(
|
||||
assert(name_or_path);
|
||||
|
||||
if (path_is_absolute(name_or_path)) {
|
||||
const char *pp;
|
||||
|
||||
pp = prefix_roota(lp->root_dir, name_or_path);
|
||||
_cleanup_free_ char *pp = path_join(lp->root_dir, name_or_path);
|
||||
if (!pp)
|
||||
return -ENOMEM;
|
||||
|
||||
return install_info_add(ctx, NULL, pp, lp->root_dir, /* auxiliary= */ false, ret);
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user