ls -l reports half the size (again, see 1115)

Giulio Orsero giulioo at pobox.com
Sun Mar 25 12:14:35 UTC 2001


Package: busybox
Version: 0.50

http://bugs.lineo.com/db/11/1115.html was closed because it was said it was not
due to busybox, and I don't know how to reopen it, so I'm opening a new bug.

I get the same bug on 2 systems:

2.2.16-22/glibc-2.1.2/egcs-2.91.66
2.0.33/libc5/2.7.2.3

Without BB_FEATURE_HUMAN_READABLE I get half size:
[go at i4 busybox-0.50]$ ./busybox ls -l ./busybox
-rwxrwxr-x   1 go       go          73992 Mar 17 11:49 ./busybox
[go at i4 busybox-0.50]$ /bin/ls ls -l ./busybox
/bin/ls: ls: No such file or directory
-rwxrwxr-x   1 go       go         147984 Mar 17 11:49 ./busybox

With BB_FEATURE_HUMAN_READABLE I get the correct size, but -lh gives M instead
of K:
[go at i4 busybox-0.50]$ ./busybox ls -l ./busybox
-rwxrwxr-x   1 go       go         148432 Mar 17 11:50 ./busybox
[go at i4 busybox-0.50]$ ./busybox ls -lh ./busybox
-rwxrwxr-x   1 go       go         145.0M Mar 17 11:50 ./busybox
[go at i4 busybox-0.50]$ ls -l ./busybox
-rwxrwxr-x   1 go       go         148432 Mar 17 11:50 ./busybox
[go at i4 busybox-0.50]$ ls -lh ./busybox
-rwxrwxr-x   1 go       go           145k Mar 17 11:50 ./busybox
[go at i4 busybox-0.50]$


Is this due to incompatibilities between kernel 2.2.16 headers (it's rh70
derived) and glibc-2.1.2 (rh61)? The same for the libc5 system?

The patch the original poster proposed works for me, on both systems; it does
not solve the M instead of k problem in -lh, though.

-- 
giulioo at pobox.com

---------------------------------------
Received: (at 1140-close) by bugs.lineo.com; 27 Mar 2001 22:10:28 +0000


More information about the busybox mailing list