Commit Graph

1 Commits

Author SHA1 Message Date
Adhemerval Zanella
32b9280f1d 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.

(cherry picked from commit 94caafa040)
2021-03-11 10:53:50 -03:00