aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-03-27 20:59:14 +0000
committermarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-03-27 20:59:14 +0000
commit5d711a96d318550f77dd9a294a162ddb8541b175 (patch)
treed5db25a1ba52810dd9c0edd440f4497257e53973
parentd366092ee0678b1b7d4bd73ad256f92067bcbd0a (diff)
downloadbusybox-w32-5d711a96d318550f77dd9a294a162ddb8541b175.tar.gz
busybox-w32-5d711a96d318550f77dd9a294a162ddb8541b175.tar.bz2
busybox-w32-5d711a96d318550f77dd9a294a162ddb8541b175.zip
Applied patch from David Douthitt to fix problem where ls reports half the
file size. Should close bug #1140. git-svn-id: svn://busybox.net/trunk/busybox@2204 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--coreutils/ls.c4
-rw-r--r--ls.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index 77de93a0c..201509210 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -652,9 +652,9 @@ static int list_single(struct dnode *dn)
652 (ls_disp_hr==TRUE)? 0: 1)); 652 (ls_disp_hr==TRUE)? 0: 1));
653#else 653#else
654#if _FILE_OFFSET_BITS == 64 654#if _FILE_OFFSET_BITS == 64
655 printf("%9lld ", dn->dstat.st_size>>1); 655 printf("%9lld ", dn->dstat.st_size);
656#else 656#else
657 printf("%9ld ", dn->dstat.st_size>>1); 657 printf("%9ld ", dn->dstat.st_size);
658#endif 658#endif
659#endif 659#endif
660 } 660 }
diff --git a/ls.c b/ls.c
index 77de93a0c..201509210 100644
--- a/ls.c
+++ b/ls.c
@@ -652,9 +652,9 @@ static int list_single(struct dnode *dn)
652 (ls_disp_hr==TRUE)? 0: 1)); 652 (ls_disp_hr==TRUE)? 0: 1));
653#else 653#else
654#if _FILE_OFFSET_BITS == 64 654#if _FILE_OFFSET_BITS == 64
655 printf("%9lld ", dn->dstat.st_size>>1); 655 printf("%9lld ", dn->dstat.st_size);
656#else 656#else
657 printf("%9ld ", dn->dstat.st_size>>1); 657 printf("%9ld ", dn->dstat.st_size);
658#endif 658#endif
659#endif 659#endif
660 } 660 }