[Bug 4946] New: ls-s-works fails due to missing "total" in ls -s

bugzilla at busybox.net bugzilla at busybox.net
Sat Mar 17 20:05:52 UTC 2012


https://bugs.busybox.net/show_bug.cgi?id=4946

           Summary: ls-s-works fails due to missing "total" in ls -s
           Product: Busybox
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Networking
        AssignedTo: unassigned at busybox.net
        ReportedBy: basil+busybox at li95-58.members.linode.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


Test ls-s-works fails because GNU "ls -s" prints a "total" line,
while busybox "ls -s" does not. For example:

$ ./busybox ls -s applets_sh
     4 README       4 dos2unix       4 nologin      4 tac          4 unix2dos
$ ls -s applets_sh
total 20
4 dos2unix  4 nologin  4 README  4 tac  4 unix2dos

Busybox ls already has code for printing a total, however it is
only enabled in "ls -l", not "ls -s". This code is in function
scan_and_display_dirs_recur, where it calls calculate_blocks and
prints the result. It should be enabled when the LIST_BLOCKS
option (-s) is active also.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list