aboutsummaryrefslogtreecommitdiff
path: root/libio/oldfileops.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/oldfileops.c')
-rw-r--r--libio/oldfileops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libio/oldfileops.c b/libio/oldfileops.c
index 0244521..fd118a6 100644
--- a/libio/oldfileops.c
+++ b/libio/oldfileops.c
@@ -314,6 +314,7 @@ _IO_old_file_underflow (fp)
if (fp->_flags & _IO_NO_READS)
{
+ fp->_flags |= _IO_ERR_SEEN;
__set_errno (EBADF);
return EOF;
}