aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/tst-fdopendir-o_path.c
AgeCommit message (Collapse)Author
2023-11-30linux: Make fdopendir fail with O_PATH (BZ 30373)Adhemerval Zanella
It is not strictly required by the POSIX, since O_PATH is a Linux extension, but it is QoI to fail early instead of at readdir. Also the check is free, since fdopendir already checks if the file descriptor is opened for read. Checked on x86_64-linux-gnu.