about summary refs log tree commit diff
path: root/io/Makefile
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-03-11 08:21:06 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-03-11 10:51:55 -0300
commit94caafa040e4b4289c968cd70d53041b1463ac4d (patch)
tree3cf4b0cecd7a112f32fb6a9756f0203eac635cd7 /io/Makefile
parente91f44089c3203f647d6feadb958ff5f388427bd (diff)
downloadglibc-94caafa040e4b4289c968cd70d53041b1463ac4d.tar.gz
glibc-94caafa040e4b4289c968cd70d53041b1463ac4d.tar.xz
glibc-94caafa040e4b4289c968cd70d53041b1463ac4d.zip
io: Return EBAFD for negative file descriptor on fstat (BZ #27559)
Now that fstat is implemented on top fstatat we need to handle negative
inputs.  The implementation now rejects AT_FDCWD, which would otherwise
be accepted by the kernel.

Checked on x86_64-linux-gnu and on i686-linux-gnu.
Diffstat (limited to 'io/Makefile')
-rw-r--r--io/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/io/Makefile b/io/Makefile
index b7bebe923f..d145d88f4e 100644
--- a/io/Makefile
+++ b/io/Makefile
@@ -68,7 +68,7 @@ tests		:= test-utime test-stat test-stat2 test-lfs tst-getcwd \
 		   tst-fts tst-fts-lfs tst-open-tmpfile \
 		   tst-copy_file_range tst-getcwd-abspath tst-lockf \
 		   tst-ftw-lnk tst-file_change_detection tst-lchmod \
-		   tst-ftw-bz26353
+		   tst-ftw-bz26353 tst-stat tst-stat-lfs
 
 # Likewise for statx, but we do not need static linking here.
 tests-internal += tst-statx