diff options
author | ache <ache@FreeBSD.org> | 2001-03-28 13:10:17 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2001-03-28 13:10:17 +0000 |
commit | 323ee87c0251766010bc22b47d488399a5135449 (patch) | |
tree | 67443b3e54c5d0364a6aeb7c65b7ae3127bb55f1 /usr.bin/tail | |
parent | 11a6b9c53ff4956df56c15ddff07c78dfec42910 (diff) | |
download | FreeBSD-src-323ee87c0251766010bc22b47d488399a5135449.zip FreeBSD-src-323ee87c0251766010bc22b47d488399a5135449.tar.gz |
Back out my fseeko -> fseek(END) change - we need to position on what we
displayed last, not to the end of file
Diffstat (limited to 'usr.bin/tail')
-rw-r--r-- | usr.bin/tail/forward.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tail/forward.c b/usr.bin/tail/forward.c index f1f1118..ffca06a 100644 --- a/usr.bin/tail/forward.c +++ b/usr.bin/tail/forward.c @@ -302,7 +302,7 @@ rlines(fp, off, sbp) } /* Set the file pointer to reflect the length displayed. */ - if (fseek(fp, 0L, SEEK_END) == -1) { + if (fseeko(fp, sbp->st_size, SEEK_SET) == -1) { ierr(); return; } |