about summary refs log tree commit diff
path: root/ldso
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2020-06-15 18:59:59 -0400
committerRich Felker <dalias@aerifal.cx>2020-06-15 19:09:46 -0400
commit4bd22b8f3e6ffa8f43ea73e7bb6276aafb5a7743 (patch)
tree03503c03d8951ffcaa3e00b11c11d1ba34bab980 /ldso
parentca36573ecfbbef7a1563aaa1a8486081f8c9fdda (diff)
downloadmusl-4bd22b8f3e6ffa8f43ea73e7bb6276aafb5a7743.tar.gz
musl-4bd22b8f3e6ffa8f43ea73e7bb6276aafb5a7743.tar.xz
musl-4bd22b8f3e6ffa8f43ea73e7bb6276aafb5a7743.zip
fix invalid use of access function in nftw
access always computes result with real ids not effective ones, so it
is not a valid means of determining whether the directory is readable.
instead, attempt to open it before reporting whether it's readable,
and then use fdopendir rather than opendir to open and read the
entries.

effort is made here to keep fd_limit behavior the same as before even
if it was not correct.
Diffstat (limited to 'ldso')
0 files changed, 0 insertions, 0 deletions