mirror of https://github.com/mirror/busybox.git
Applied patch from David Douthitt to fix problem where ls reports half the
file size. Should close bug #1140.1_00_stable_10817
parent
cc7b4f39fc
commit
9a2144663a
|
@ -652,9 +652,9 @@ static int list_single(struct dnode *dn)
|
|||
(ls_disp_hr==TRUE)? 0: 1));
|
||||
#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
|
||||
}
|
||||
|
|
4
ls.c
4
ls.c
|
@ -652,9 +652,9 @@ static int list_single(struct dnode *dn)
|
|||
(ls_disp_hr==TRUE)? 0: 1));
|
||||
#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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue