]> git.ipfire.org Git - thirdparty/coreutils.git/commit
du: don't miscount duplicate directories or link-count-1 files
authorPaul Eggert <eggert@CS.UCLA.EDU>
Sat, 3 Jul 2010 06:41:08 +0000 (23:41 -0700)
committerJim Meyering <meyering@redhat.com>
Sat, 3 Jul 2010 08:28:08 +0000 (10:28 +0200)
commitefe53cc72b599979ea292754ecfe8abf7c839d22
tree4041993405c58203ccad79280dd9aed419e06ec2
parentd27d6d371f3f7ede14b6bde79ddd45307d30fa47
du: don't miscount duplicate directories or link-count-1 files

* NEWS: Mention this.
* src/du.c (hash_all): New static var.
(process_file): Use it.
(main): Set it.
* tests/du/hard-link: Add a couple of test cases to help make
sure this bug stays squashed.
* tests/du/files0-from: Adjust existing tests to reflect
change in semantics with duplicate arguments.
NEWS
src/du.c
tests/du/files0-from
tests/du/hard-link