Pseudo filesystems (e.g., procfs) advertise a zero file size.
Fix reverse() to handle such a case similarly as forward() so
that '-r' works on pseudo filesystems.
Approved by: re (cperciva)
Signed-off-by: Aaron LI <aly@aaronly.me>
Reviewed by: pouria, Ricardo Branco <rbranco@suse.de>, des
Fixes:
|
||
|---|---|---|
| .. | ||
| tests | ||
| extern.h | ||
| forward.c | ||
| Makefile | ||
| Makefile.depend | ||
| Makefile.depend.options | ||
| misc.c | ||
| read.c | ||
| reverse.c | ||
| tail.1 | ||
| tail.c | ||