chase-symlink: when converting directory O_PATH fd to real fd, don't bother with /proc/
Replaces: #25581
This commit is contained in:
@@ -557,7 +557,7 @@ int chase_symlinks_and_opendir(
|
||||
return r;
|
||||
assert(path_fd >= 0);
|
||||
|
||||
d = opendir(FORMAT_PROC_FD_PATH(path_fd));
|
||||
d = xopendirat(path_fd, ".", O_NOFOLLOW);
|
||||
if (!d)
|
||||
return -errno;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user