diff options
-rw-r--r-- | coreutils/du.c | 4 | ||||
-rw-r--r-- | libbb/inode_hash.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/du.c b/coreutils/du.c index 6d737fbfb..d14d9e4ea 100644 --- a/coreutils/du.c +++ b/coreutils/du.c | |||
@@ -290,11 +290,11 @@ int du_main(int argc UNUSED_PARAM, char **argv) | |||
290 | total = 0; | 290 | total = 0; |
291 | do { | 291 | do { |
292 | total += du(*argv); | 292 | total += du(*argv); |
293 | /* otherwise du /dir /dir won't show /dir twice: */ | ||
294 | reset_ino_dev_hashtable(); | ||
295 | G.slink_depth = slink_depth_save; | 293 | G.slink_depth = slink_depth_save; |
296 | } while (*++argv); | 294 | } while (*++argv); |
297 | 295 | ||
296 | if (ENABLE_FEATURE_CLEAN_UP) | ||
297 | reset_ino_dev_hashtable(); | ||
298 | if (opt & OPT_c_total) | 298 | if (opt & OPT_c_total) |
299 | print(total, "total"); | 299 | print(total, "total"); |
300 | 300 | ||
diff --git a/libbb/inode_hash.c b/libbb/inode_hash.c index 4142813e3..a125244ca 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 * | |||
77 | ino_dev_hashtable[i] = bucket; | 77 | ino_dev_hashtable[i] = bucket; |
78 | } | 78 | } |
79 | 79 | ||
80 | #if ENABLE_DU || ENABLE_FEATURE_CLEAN_UP | 80 | #if ENABLE_FEATURE_CLEAN_UP |
81 | /* Clear statbuf hash table */ | 81 | /* Clear statbuf hash table */ |
82 | void FAST_FUNC reset_ino_dev_hashtable(void) | 82 | void FAST_FUNC reset_ino_dev_hashtable(void) |
83 | { | 83 | { |