[BusyBox 0006164]: du does not print identical directory name multiple times (mismatch with coreutils)

bugs at busybox.net bugs at busybox.net
Tue Nov 11 21:17:40 UTC 2008


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=6164 
====================================================================== 
Reported By:                pgbovine
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   6164
Category:                   Standards Compliance
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             11-11-2008 11:41 PST
Last Modified:              11-11-2008 13:17 PST
====================================================================== 
Summary:                    du does not print identical directory name multiple
times (mismatch with coreutils)
Description: 
Coreutils behavior:

$ mkdir A
$ du A
4       A
$ du A A
4       A
4       A
$ du A A A
4       A
4       A
4       A


Busybox behavior:

$ mkdir A
$ ./busybox du A
4       A
$ ./busybox du A A
4       A
$ ./busybox du A A A
4       A

Busybox doesn't duplicate the directory entries.  Perhaps this is a
feature and coreutils is actually behaving incorrectly?

Note that when A is a REGULAR FILE (rather than a directory), coreutils
and busybox behave identically and duplicate the entries:

$ touch A
$ ./busybox du A
0       A
$ ./busybox du A A
0       A
0       A
$ ./busybox du A A A
0       A
0       A
0       A
====================================================================== 

---------------------------------------------------------------------- 
 vda - 11-11-08 13:17  
---------------------------------------------------------------------- 
Try attached 6.patch 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-11-08 11:41  pgbovine       New Issue                                    
11-11-08 11:41  pgbovine       Status                   new => assigned     
11-11-08 11:41  pgbovine       Assigned To               => BusyBox         
11-11-08 13:17  vda            File Added: 6.patch                          
11-11-08 13:17  vda            Note Added: 0015424                          
======================================================================




More information about the busybox-cvs mailing list