]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cat: fix plain ‘cat’ bug
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 14 Feb 2025 21:10:02 +0000 (13:10 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 14 Feb 2025 21:13:08 +0000 (13:13 -0800)
commit7386c291be8e2de115f2e161886e872429edadd7
treefcef6842cb4fcc997c9b119866d104e06676e137
parentdff821d3e392d7ac39c44eb5ded43ea91ced92f2
cat: fix plain ‘cat’ bug

* src/cat.c (main): Do not fail with plain ‘cat’ where input and
output are both /dev/tty, if the output happens to have O_APPEND set.
Problem reported by lilydjwg <https://bugs.gnu.org/76255>.
Also, don’t report an error if the seek position is at or after EOF,
even if O_APPEND is set.
NEWS
src/cat.c