]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tail: simplify -c+ on regular files
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 23 Jul 2025 05:05:17 +0000 (22:05 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 Aug 2025 02:48:04 +0000 (19:48 -0700)
commitc667ca229f3bed2b6d2ea16312f607d8d385e4c3
tree2d1a1bac50ee9a7fae53a0064350ee82043be77b
parent938035b9b4b5913ec4919290117f14d99438be8c
tail: simplify -c+ on regular files

* src/tail.c (tail_bytes): Simplify the -c+N case by treating
regular files like other files; if the lseek fails for whatever
reason, fall back on the unoptimized version instead of reporting
a fatal error.
src/tail.c