while ((r = cg_read_subgroup(d, &fn)) > 0) {
_cleanup_free_ char *p = NULL;
- p = path_join(path, fn);
+ p = path_join(empty_to_root(path), fn);
free(fn);
if (!p)
return -ENOMEM;
while ((r = cg_read_subgroup(d, &fn)) > 0) {
_cleanup_free_ char *p = NULL;
- p = path_join(pfrom, fn);
+ p = path_join(empty_to_root(pfrom), fn);
free(fn);
if (!p)
return -ENOMEM;
while ((r = cg_read_subgroup(d, &fn)) > 0) {
_cleanup_free_ char *p = NULL;
- p = path_join(path, fn);
+ p = path_join(empty_to_root(path), fn);
free(fn);
if (!p)