Date: Mon, 26 Mar 2001 11:29:50 -0800 (PST) From: "Andrey A. Chernov" <ache@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/tail forward.c Message-ID: <200103261929.f2QJToC44593@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
ache 2001/03/26 11:29:50 PST
Modified files:
usr.bin/tail forward.c
Log:
rlines() checks:
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.
Revision Changes Path
1.19 +11 -4 src/usr.bin/tail/forward.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103261929.f2QJToC44593>
