mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 02:22:43 +00:00
4f2554b7b7
1) really check for size overflow by checking negative value. 2) since mmap() not support files over INT_MAX size, add check for it until either mmap() will be fixed or tail will be rewritted to handle large files alternatively. 3) replace fseek(... file_size, SEEK_SET) with fseek(... 0L, SEEK_END) to avoid off_t -> long cast 4) Use exit() if file is too big instead of warning and wrong logic afterwards. |
||
---|---|---|
.. | ||
extern.h | ||
forward.c | ||
Makefile | ||
misc.c | ||
read.c | ||
reverse.c | ||
tail.1 | ||
tail.c |