[BusyBox] bug#1115: ls reports file sizes half what it should
David Douthitt
ssrat at mailbag.com
Fri Mar 2 02:45:07 UTC 2001
Package: busybox
Version: 0.50pre
This version reports file sizes half what it should, and half of what
GNU ls and busybox 0.49 ls said. The included patch fixes that...
-------------- next part --------------
--- ls.c Thu Mar 1 20:41:35 2001
+++ ls.new.c Thu Mar 1 20:21:37 2001
@@ -650,9 +650,9 @@
fprintf(stdout, "%9s ", format(dn->dstat.st_size, ls_disp_hr));
#else
#if _FILE_OFFSET_BITS == 64
- printf("%9lld ", dn->dstat.st_size>>1);
+ printf("%9lld ", dn->dstat.st_size);
#else
- printf("%9ld ", dn->dstat.st_size>>1);
+ printf("%9ld ", dn->dstat.st_size);
#endif
#endif
}
More information about the busybox
mailing list