diff options
| author | David Schultz <das@FreeBSD.org> | 2009-01-08 06:38:06 +0000 |
|---|---|---|
| committer | David Schultz <das@FreeBSD.org> | 2009-01-08 06:38:06 +0000 |
| commit | 0cab1fd2369c938361ed93befa9191632ef91e2d (patch) | |
| tree | ddb90a35fdff5f40c47edebf5aa02c0e601ee97e /lib | |
| parent | 4984f138f8ef473f0ff5054a49b65d377b23bad3 (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libc/stdio/wsetup.c | 1 |
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) { |
