summaryrefslogtreecommitdiffstats
path: root/usr.bin/du
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>1998-09-11 15:53:08 +0000
committerdes <des@FreeBSD.org>1998-09-11 15:53:08 +0000
commit3525ebf5c456fa5e18c76d02695454b198f26249 (patch)
tree1be3280c61731829d8a14094d7da0819a4684b24 /usr.bin/du
parent413082054c2eceefc9dc96eb24269e320e8b4c38 (diff)
downloadFreeBSD-src-3525ebf5c456fa5e18c76d02695454b198f26249.zip
FreeBSD-src-3525ebf5c456fa5e18c76d02695454b198f26249.tar.gz
Print correct total for -c option (previously, the total for the last
directory scanned was printed instead of the real total) PR: bin/7896 Submitted by: Zach Heilig <zach@gaffaneys.com>
Diffstat (limited to 'usr.bin/du')
-rw-r--r--usr.bin/du/du.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/du/du.c b/usr.bin/du/du.c
index 4c75b70..041c1a6 100644
--- a/usr.bin/du/du.c
+++ b/usr.bin/du/du.c
@@ -214,7 +214,7 @@ main(argc, argv)
p->fts_parent->fts_number += p->fts_statp->st_blocks;
}
- savednumber = p->fts_number;
+ savednumber = p->fts_parent->fts_number;
}
if (errno)
OpenPOWER on IntegriCloud