du: handle --files0-from=- with piped in - (#8985)

* du: handle --files0-from=- with piped in '-'

* build-gnu.sh: remove incorrect string replacement

in tests/du/files0-from.pl

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
This commit is contained in:
Daniel Hofstetter
2025-12-05 23:07:16 +01:00
committed by GitHub
co-authored by Sylvestre Ledru
parent 443c2014fb
commit 5b261bc1af
5 changed files with 21 additions and 8 deletions
-1
View File
@@ -285,7 +285,6 @@ test -f "${UU_BUILD_DIR}/getlimits" || cp src/getlimits "${UU_BUILD_DIR}"
# Remove the extra output check
"${SED}" -i -e "s|Try '\$prog --help' for more information.\\\n||" tests/du/files0-from.pl
"${SED}" -i -e "s|when reading file names from stdin, no file name of\"|-: No such file or directory\n\"|" -e "s| '-' allowed\\\n||" tests/du/files0-from.pl
"${SED}" -i -e "s|-: No such file or directory|cannot access '-': No such file or directory|g" tests/du/files0-from.pl
# Skip the move-dir-while-traversing test - our implementation uses safe traversal with openat()