aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-08-22 23:08:37 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-08-22 23:08:37 +0000
commit6d8efecd04bcae9c1c2e7106212fd7c444f92fad (patch)
tree9fd8d2a4b154f2e6b4707480f2a1c4709c5103ff /include
parenta1299e52b462e50b4ca38b5679a3fd7d92b2f72c (diff)
downloadbusybox-w32-6d8efecd04bcae9c1c2e7106212fd7c444f92fad.tar.gz
busybox-w32-6d8efecd04bcae9c1c2e7106212fd7c444f92fad.tar.bz2
busybox-w32-6d8efecd04bcae9c1c2e7106212fd7c444f92fad.zip
"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! git-svn-id: svn://busybox.net/trunk/busybox@7253 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 750e0bb4f..a6d9a510b 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -267,7 +267,8 @@ enum {
267 MEGABYTE = (KILOBYTE*1024), 267 MEGABYTE = (KILOBYTE*1024),
268 GIGABYTE = (MEGABYTE*1024) 268 GIGABYTE = (MEGABYTE*1024)
269}; 269};
270const char *make_human_readable_str(unsigned long size, unsigned long block_size, unsigned long display_unit); 270const char *make_human_readable_str(unsigned long long size,
271 unsigned long block_size, unsigned long display_unit);
271 272
272int bb_ask_confirmation(void); 273int bb_ask_confirmation(void);
273int klogctl(int type, char * b, int len); 274int klogctl(int type, char * b, int len);