du: --apparent counts only symlinks and regular
commit110bcd28386b1f47a4cd876098acb708fdcbbb25
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 5 Mar 2023 00:51:11 +0000 (4 16:51 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 5 Mar 2023 00:57:16 +0000 (4 16:57 -0800)
tree8ed76d8b3e55d094e37a9ccb5d5c386d44abe3df
parent8022874d1242f3b094b6bd001e83845e289d2bb1
du: --apparent counts only symlinks and regular

Problem reported by Christoph Anton Mitterer (Bug#61884).
* src/du.c (process_file): When counting apparent sizes, count
only usable st_size members.
* tests/du/apparent.sh: New file.
* tests/local.mk (all_root_tests): Add it.
NEWS
doc/coreutils.texi
src/du.c
tests/du/apparent.sh [new file with mode: 0755]
tests/local.mk