summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/du.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/du.c b/coreutils/du.c
index 6d737fb..d14d9e4 100644
--- a/coreutils/du.c
+++ b/coreutils/du.c
@@ -290,11 +290,11 @@ int du_main(int argc UNUSED_PARAM, char **argv)
total = 0;
do {
total += du(*argv);
- /* otherwise du /dir /dir won't show /dir twice: */
- reset_ino_dev_hashtable();
G.slink_depth = slink_depth_save;
} while (*++argv);
+ if (ENABLE_FEATURE_CLEAN_UP)
+ reset_ino_dev_hashtable();
if (opt & OPT_c_total)
print(total, "total");