diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2001-09-01 11:21:28 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2001-09-01 11:21:28 +0000 |
| commit | 6946977c36c9db3d6b7c2cbbd281b2cc878471e9 (patch) | |
| tree | 49a1657a4de0774a1f328366f4f374f654050ed7 /lib/libc/stdio/stdio.c | |
| parent | b13ed88361bc47cdf6d0052f1b7dc84bda90da19 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/stdio.c')
| -rw-r--r-- | lib/libc/stdio/stdio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/stdio/stdio.c b/lib/libc/stdio/stdio.c index 46dd2df2760d..ea8a4c1c7f7d 100644 --- a/lib/libc/stdio/stdio.c +++ b/lib/libc/stdio/stdio.c @@ -118,8 +118,10 @@ __sseek(cookie, offset, whence) * (fseek) in the cases it can't detect. */ if (ret < 0) { - if (errret == 0) + if (errret == 0) { + fp->_flags |= __SERR; errno = EINVAL; + } fp->_flags &= ~__SOFF; ret = -1; } else { |
