chase-symlinks: Fix regression from 5bc244aaa9
Previously, chase_symlinks() always returned an absolute path, which
changed after 5bc244aaa9. This commit
fixes chase_symlinks() so it returns absolute paths all the time again.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
5fbaa75707
commit
2877b14720
@@ -466,8 +466,10 @@ int chase_symlinks(
|
||||
return -errno;
|
||||
|
||||
flags |= CHASE_AT_RESOLVE_IN_ROOT;
|
||||
} else
|
||||
} else {
|
||||
path = absolute;
|
||||
fd = AT_FDCWD;
|
||||
}
|
||||
|
||||
r = chase_symlinks_at(fd, path, flags & ~CHASE_PREFIX_ROOT, ret_path ? &p : NULL, ret_fd ? &pfd : NULL);
|
||||
if (r < 0)
|
||||
|
||||
Reference in New Issue
Block a user