summaryrefslogtreecommitdiffstats
path: root/usr.sbin/fifolog
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2009-02-02 14:30:07 +0000
committerphk <phk@FreeBSD.org>2009-02-02 14:30:07 +0000
commit041c968b4f9675e402c7e97a59fea35c93c06256 (patch)
tree472ab2522e2bd8fca0722f4c5bb4439b9e108467 /usr.sbin/fifolog
parent8b7a45678f332252b0242b72c0807e764a690680 (diff)
downloadFreeBSD-src-041c968b4f9675e402c7e97a59fea35c93c06256.zip
FreeBSD-src-041c968b4f9675e402c7e97a59fea35c93c06256.tar.gz
The last sector in the first segment might just be a sync, increment before
checking validity of segment two.
Diffstat (limited to 'usr.sbin/fifolog')
-rw-r--r--usr.sbin/fifolog/lib/fifolog_reader.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/fifolog/lib/fifolog_reader.c b/usr.sbin/fifolog/lib/fifolog_reader.c
index fde2a07..77e586f 100644
--- a/usr.sbin/fifolog/lib/fifolog_reader.c
+++ b/usr.sbin/fifolog/lib/fifolog_reader.c
@@ -155,6 +155,7 @@ fifolog_reader_seek(const struct fifolog_reader *fr, time_t t0)
retval = fifolog_int_findend(fr->ff, &s);
if (retval != NULL)
err(1, "%s", retval);
+ s++;
e = fifolog_reader_findsync(fr->ff, &s);
if (e == 0)
return (0); /* empty fifolog */
OpenPOWER on IntegriCloud