From 12508c923fafba81b377e36675fae5ffae2848de Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 21 Feb 2003 07:15:16 +0000 Subject: [PATCH] (process_file): Always reset size_to_propagate_to_parent for --separate-dirs (-S). --- src/du.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/du.c b/src/du.c index b494cf481..c58559422 100644 --- a/src/du.c +++ b/src/du.c @@ -426,11 +426,12 @@ process_file (const char *file, const struct stat *sb, int file_type, assert ((size_t) info->level == prev_level - 1); size_to_propagate_to_parent = size_including_subdirs = size + sum[prev_level]; - if (opt_separate_dirs) - size_to_propagate_to_parent = 0; } } + if (opt_separate_dirs) + size_to_propagate_to_parent = 0; + prev_level = info->level; first_call = 0; -- 2.11.4.GIT