]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tail: optimize tail -n +2**63
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 29 Jul 2025 16:37:44 +0000 (09:37 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 Aug 2025 02:48:05 +0000 (19:48 -0700)
commit10aa908ebd8d487f0dbbc77abb317a94d33f460d
tree5d6964c363261a1793b7045f523be38b699bd982
parent3918655d4b4bc0e52349aebd7c9816b401ac0d9d
tail: optimize tail -n +2**63

* src/tail.c (tail_lines): Also optimize ‘tail -n +N’
on a seekable file, where OFF_T_MAX <= N < UINTMAX_MAX.
Of course this is very unlikely.
src/tail.c