On 01/12/2026 03:53, Collin Funk wrote:
This avoids the following behavior:$ strace -ff -e trace=none sh -c 'echo a > fifo' --- SIGPIPE {si_signo=SIGPIPE, ...} --- +++ killed by SIGPIPE +++ Where the SIGPIPE is caused by opening and closing the file descriptor for --reference in the following command: $ truncate --reference=fifo file * src/truncate.c (main): Set errno to ESPIPE if the reference file is a FIFO and skip opening a file descriptor. * tests/truncate/truncate-fifo.sh: Add a test case. * NEWS: Mention the bug fix.
LGTM cheers, Padraig
