diff options
| author | Adam David <adam@FreeBSD.org> | 1996-07-30 13:11:43 +0000 |
|---|---|---|
| committer | Adam David <adam@FreeBSD.org> | 1996-07-30 13:11:43 +0000 |
| commit | 49a598ab871d98eba3cd0a21937b729716727cbb (patch) | |
| tree | b6ca9a0d0964a44c50564db82f2f4288e3907a16 /usr.bin/tail/reverse.c | |
| parent | 50f56e483ad735716aa51d0ba798a096cd772bc7 (diff) | |
Notes
Diffstat (limited to 'usr.bin/tail/reverse.c')
| -rw-r--r-- | usr.bin/tail/reverse.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.bin/tail/reverse.c b/usr.bin/tail/reverse.c index 34cd980726a7..455706444943 100644 --- a/usr.bin/tail/reverse.c +++ b/usr.bin/tail/reverse.c @@ -200,6 +200,11 @@ r_buf(fp) len < BSZ && (ch = getc(fp)) != EOF; ++len) *p++ = ch; + if (ferror(fp)) { + ierr(); + return; + } + /* * If no input data for this block and we tossed some data, * recover it. |
