Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145069624
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
446 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/usr.bin/tail/reverse.c b/usr.bin/tail/reverse.c
index 1fa8784dec6d..690101c0b803 100644
--- a/usr.bin/tail/reverse.c
+++ b/usr.bin/tail/reverse.c
@@ -78,7 +78,7 @@ reverse(FILE *fp, const char *fn, enum STYLE style, off_t off, struct stat *sbp)
if (style != REVERSE && off == 0)
return;
- if (S_ISREG(sbp->st_mode))
+ if (S_ISREG(sbp->st_mode) && sbp->st_size > 0)
r_reg(fp, fn, style, off, sbp);
else
switch(style) {
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Tue, Apr 28, 9:02 PM (20 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28443850
Default Alt Text
(446 B)
Attached To
Mode
rG FreeBSD src repository
Attached
Detach File
Event Timeline
Log In to Comment