From e06cf7dbca5d0214a92978698c02ae01ddf991c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Fri, 11 Sep 1998 15:53:08 +0000 Subject: [PATCH] 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 --- usr.bin/du/du.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/du/du.c b/usr.bin/du/du.c index 4c75b70a37e..041c1a619b4 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)