diff options
Diffstat (limited to 'libio/fileops.c')
-rw-r--r-- | libio/fileops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libio/fileops.c b/libio/fileops.c index 8ced77b4c3..decb9d7185 100644 --- a/libio/fileops.c +++ b/libio/fileops.c @@ -358,6 +358,7 @@ _IO_new_file_underflow (fp) if (fp->_flags & _IO_NO_READS) { + fp->_flags |= _IO_ERR_SEEN; __set_errno (EBADF); return EOF; } |