Bug 20007

Summary: du -hcs * gives different wrong results directories compared to du -cs *
Product: Base System Reporter: jan.rhebergen <jan.rhebergen>
Component: miscAssignee: Michael Haro <mharo>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description jan.rhebergen 2000-07-18 15:50:01 UTC
When trying

du -hcs * 

from my home directory it incorrectly states the size of one of the directories, while

du -cs *

give the correct result.

The totals are correct in both cases though.

Fix: 

Not a clue!
How-To-Repeat: Example:

bash-2.03$ du -csh *
267K    GNUstep
1.0K    cvsupfile
6.3M    ftp
3.0K    mail
6.6M    nsmail
2.0K    osnotes
4.0K    stable-supfile_
6.6M    total

The 6.6M for the nsmail directory is wrong!

Look at this:

bash-2.03$ du -cs *
268     GNUstep
1       cvsupfile
6457    ftp
4       mail
1       nsmail
2       osnotes
4       stable-supfile_
6737    total
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-07-18 16:05:27 UTC
Responsible Changed
From-To: freebsd-bugs->mharo

His code.
Comment 2 Michael Haro freebsd_committer freebsd_triage 2000-07-19 07:28:22 UTC
State Changed
From-To: open->feedback

I believe this bug was fixed after 4.0-release was released. 

Please upgrade to 4.x-stable or wait for 4.1 to be released. 
If you want I can send you a patch you can apply to the 4.0 
source code, but upgrading to 4.x-stable would do this anyway. 

If you have upgraded and this isn't the case I'll look into  
this some more. 

Michael
Comment 3 Michael Haro freebsd_committer freebsd_triage 2000-11-24 22:50:35 UTC
State Changed
From-To: feedback->closed

timeout