]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Minor optimization:
authorJim Meyering <jim@meyering.net>
Sun, 28 Mar 2004 21:43:50 +0000 (21:43 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 28 Mar 2004 21:43:50 +0000 (21:43 +0000)
commitca6d256f125ea496cdb059a201f92f77f1ce0c69
tree0b6e00b1c3fb0ad634d70ec51cdd306c71ce1d2c
parent9e77380c9f7a0bc0f3287ec1c41a36f890e68469
Minor optimization:
(process_file): Don't record dev/inode for directories.

Under some circumstances, without -c, du would mistakenly count the
space of hard-linked files, not just the first one it encountered.
Reported by Anthony Thyssen.
(du_files): Don't ever clear the set of `seen' dev/inodes.
src/du.c