mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Set stream errors in more cases
Also avoid unnecessarily setting errno when testing for TTY.
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
CHECK_FILE (S, -1); \
|
||||
if (S->_flags & _IO_NO_WRITES) \
|
||||
{ \
|
||||
S->_flags |= _IO_ERR_SEEN; \
|
||||
__set_errno (EBADF); \
|
||||
return -1; \
|
||||
} \
|
||||
|
||||
Reference in New Issue
Block a user