du: don't count duplicate arguments. Closes 5288
authorRon Yorston <rmy@pobox.com>
Sat, 16 Feb 2019 10:22:31 +0000 (10:22 +0000)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 19 Feb 2019 16:08:39 +0000 (17:08 +0100)
commite563f9e851c78f5c13cb9828ddb11ca981fd6331
tree0e277c457ebd0bcc24712c66bc964ec9e26e72aa
parent8502fa8747e962f69084be09ff8b930e0fb0c449
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>
coreutils/du.c
libbb/inode_hash.c