diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 1998-09-11 15:53:08 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 1998-09-11 15:53:08 +0000 |
commit | e06cf7dbca5d0214a92978698c02ae01ddf991c8 (patch) | |
tree | 3538275e6e2dafd31c50605b82f6e1a5b3a9ab18 /usr.bin/du | |
parent | 00e500a2e5fddd721d9785e9306d31461adc44bb (diff) | |
download | src-e06cf7dbca5d0214a92978698c02ae01ddf991c8.tar.gz src-e06cf7dbca5d0214a92978698c02ae01ddf991c8.zip |
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>
Notes
Notes:
svn path=/head/; revision=39076
Diffstat (limited to 'usr.bin/du')
-rw-r--r-- | usr.bin/du/du.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/du/du.c b/usr.bin/du/du.c index 4c75b70a37e8..041c1a619b42 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) |