[BusyBox] ls and half file size: I get bug 1115

Giulio Orsero giulioo at pobox.com
Sat Mar 17 11:01:22 UTC 2001


http://bugs.lineo.com/db/11/1115.html was closed because it was not due to
busybox.

However, 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

Withouth 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?


-- 
giulioo at pobox.com





More information about the busybox mailing list