summaryrefslogtreecommitdiff
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authorDavid Schultz <das@FreeBSD.org>2009-01-08 06:38:06 +0000
committerDavid Schultz <das@FreeBSD.org>2009-01-08 06:38:06 +0000
commit0cab1fd2369c938361ed93befa9191632ef91e2d (patch)
treeddb90a35fdff5f40c47edebf5aa02c0e601ee97e /lib/libc/stdio
parent4984f138f8ef473f0ff5054a49b65d377b23bad3 (diff)
Notes
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r--lib/libc/stdio/wsetup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/stdio/wsetup.c b/lib/libc/stdio/wsetup.c
index a5da23f003ec..37bfc58bc360 100644
--- a/lib/libc/stdio/wsetup.c
+++ b/lib/libc/stdio/wsetup.c
@@ -60,6 +60,7 @@ __swsetup(fp)
if ((fp->_flags & __SWR) == 0) {
if ((fp->_flags & __SRW) == 0) {
errno = EBADF;
+ fp->_flags |= __SERR;
return (EOF);
}
if (fp->_flags & __SRD) {