[BusyBox-cvs] busybox/libbb human_readable.c,1.7,1.8

Erik Andersen andersen at busybox.net
Fri Aug 22 23:08:51 UTC 2003


Update of /var/cvs/busybox/libbb
In directory winder:/tmp/cvs-serv4747/libbb

Modified Files:
	human_readable.c 
Log Message:
"staywithu" writes:

In BusyBox v1.00-pre2,
 commands like ls, df with -h option report a wrong file size for files larger than 4GBtye!!

For example,
   when I execute 'ls -l', it reports
      -rw-r--r--      1 root       root    5368709120    Aug    17  2003  large_stream.tp

   when I execute 'ls -lh', I expect that
      -rw-r--r--      1 root       root                5.0G    Aug    17  2003  large_stream.tp

  but it reports
      -rw-r--r--      1 root       root                1.0G    Aug    17  2003  large_stream.tp

I fixed this bug that...
 Line 31 in libbb/human_readable.c and line 275 include/libbb.h
                                                               
     const char *make_human_readable_str(unsigned long size    
      =>   const char *make_human_readable_str(unsigned long long size

It's OK!






More information about the busybox-cvs mailing list