summaryrefslogtreecommitdiff
path: root/libbb/inode_hash.c
diff options
context:
space:
mode:
authorRon Yorston2019-02-16 10:22:31 +0000
committerDenys Vlasenko2019-02-19 17:08:39 +0100
commite563f9e851c78f5c13cb9828ddb11ca981fd6331 (patch)
tree0e277c457ebd0bcc24712c66bc964ec9e26e72aa /libbb/inode_hash.c
parent8502fa8747e962f69084be09ff8b930e0fb0c449 (diff)
downloadbusybox-e563f9e851c78f5c13cb9828ddb11ca981fd6331.zip
busybox-e563f9e851c78f5c13cb9828ddb11ca981fd6331.tar.gz
du: don't count duplicate arguments. Closes 5288
Since coreutils 8.6 (2010-10-15) du no longer counts duplicate arguments. Revert the relevant part of commit 618a3027ed (du: fix "du /dir /dir" case). function old new delta du_main 302 297 -5 reset_ino_dev_hashtable 78 - -78 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-83) Total: -83 bytes Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/inode_hash.c')
-rw-r--r--libbb/inode_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/inode_hash.c b/libbb/inode_hash.c
index 4142813..a125244 100644
--- a/libbb/inode_hash.c
+++ b/libbb/inode_hash.c
@@ -77,7 +77,7 @@ void FAST_FUNC add_to_ino_dev_hashtable(const struct stat *statbuf, const char *
ino_dev_hashtable[i] = bucket;
}
-#if ENABLE_DU || ENABLE_FEATURE_CLEAN_UP
+#if ENABLE_FEATURE_CLEAN_UP
/* Clear statbuf hash table */
void FAST_FUNC reset_ino_dev_hashtable(void)
{