]> git.ipfire.org Git - thirdparty/coreutils.git/commit
du: treat negative --max-depth values as errors
authorCollin Funk <collin.funk1@gmail.com>
Sat, 4 Jul 2026 03:24:39 +0000 (20:24 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sat, 4 Jul 2026 03:29:48 +0000 (20:29 -0700)
commit165b62de8083ed9dec9ef4e1699ed44c3c7a2b91
tree6553fbb15a2363e9d32d3c97037a7a58b59cb72e
parenta463a6e6ee692d74833d05dec47840be550e2914
du: treat negative --max-depth values as errors

* NEWS: Mention the bug fix.
* src/du.c (main): Prefer ckd_add to check for overflow. Emit an error
if the value is negative.
* tests/du/max-depth.sh: Add a test case for the bug.
NEWS
src/du.c
tests/du/max-depth.sh