diff options
author | Rich Felker <dalias@aerifal.cx> | 2020-06-15 18:59:59 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2020-06-15 19:09:46 -0400 |
commit | 4bd22b8f3e6ffa8f43ea73e7bb6276aafb5a7743 (patch) | |
tree | 03503c03d8951ffcaa3e00b11c11d1ba34bab980 /ldso | |
parent | ca36573ecfbbef7a1563aaa1a8486081f8c9fdda (diff) | |
download | musl-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