]> git.ipfire.org Git - thirdparty/coreutils.git/commit
shred: preserve the ENXIO errno from open
authorCollin Funk <collin.funk1@gmail.com>
Wed, 20 May 2026 01:10:51 +0000 (18:10 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Wed, 20 May 2026 01:16:21 +0000 (18:16 -0700)
commit4d63accc0896a9b0d0d817795afae616f081bbc1
treeecb57677feedfed9b5a71b730da9ea60556abaf6
parent157bdb2443815bda9085b0abdee609a2e1d96456
shred: preserve the ENXIO errno from open

This fixes an issue in unreleased commit f77f365ef (shred: don't block
when opening FIFOs with no readers, 2026-05-09).

* src/shred.c: Save the errno before calling stat and use it in the
error message.
* tests/shred/fifo.sh: Call getlimits_ and uses_strace_. Add a test
case.
src/shred.c
tests/shred/fifo.sh