]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tail: refactor SEEK_END and lines
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 29 Jul 2025 16:14:37 +0000 (09:14 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 Aug 2025 02:48:05 +0000 (19:48 -0700)
commit3918655d4b4bc0e52349aebd7c9816b401ac0d9d
tree3d6cc79d4a3e7dda9accca899c5694b7876fd42b
parent09fc945b374d256869615591171d744462e20c6e
tail: refactor SEEK_END and lines

* src/tail.c (tail_lines): Refactor to simplify the confusing
code for using SEEK_END when counting lines.  The old code
had a ‘end_pos != 0’ expression that was always true.
src/tail.c