diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-08-10 08:56:00 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-11-30 13:37:04 -0300 |
commit | 4e16d89866e660426438238a47c2345bdc47dd97 (patch) | |
tree | a5549e72fcba4d943e8a8dd98835dbb32b444c30 /sysdeps/unix/sysv/linux/Makefile | |
parent | 807849965bbdeaa9b0a8f675d098efc520eeaaa8 (diff) | |
download | glibc-4e16d89866e660426438238a47c2345bdc47dd97.zip glibc-4e16d89866e660426438238a47c2345bdc47dd97.tar.gz glibc-4e16d89866e660426438238a47c2345bdc47dd97.tar.bz2 |
linux: Make fdopendir fail with O_PATH (BZ 30373)
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.
Diffstat (limited to 'sysdeps/unix/sysv/linux/Makefile')
-rw-r--r-- | sysdeps/unix/sysv/linux/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefile index 250df6f..415aa1f 100644 --- a/sysdeps/unix/sysv/linux/Makefile +++ b/sysdeps/unix/sysv/linux/Makefile @@ -201,6 +201,7 @@ tests += \ tst-clone3 \ tst-epoll \ tst-fanotify \ + tst-fdopendir-o_path \ tst-getauxval \ tst-gettid \ tst-gettid-kill \ |