aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tail/forward.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tail/forward.c')
-rw-r--r--usr.bin/tail/forward.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/tail/forward.c b/usr.bin/tail/forward.c
index 8e32cc45ab718..830d6aa20a79d 100644
--- a/usr.bin/tail/forward.c
+++ b/usr.bin/tail/forward.c
@@ -136,7 +136,8 @@ forward(fp, style, off, sbp)
return;
}
} else
- bytes(fp, off);
+ if (bytes(fp, off))
+ return;
break;
case RLINES:
if (S_ISREG(sbp->st_mode))
@@ -154,7 +155,8 @@ forward(fp, style, off, sbp)
return;
}
} else
- lines(fp, off);
+ if (lines(fp, off))
+ return;
break;
}