Applied patch from David Douthitt to fix problem where ls reports half the

file size. Should close bug #1140.
This commit is contained in:
Mark Whitley 2001-03-27 20:59:14 +00:00
parent cc7b4f39fc
commit 9a2144663a
2 changed files with 4 additions and 4 deletions

View File

@ -652,9 +652,9 @@ static int list_single(struct dnode *dn)
(ls_disp_hr==TRUE)? 0: 1)); (ls_disp_hr==TRUE)? 0: 1));
#else #else
#if _FILE_OFFSET_BITS == 64 #if _FILE_OFFSET_BITS == 64
printf("%9lld ", dn->dstat.st_size>>1); printf("%9lld ", dn->dstat.st_size);
#else #else
printf("%9ld ", dn->dstat.st_size>>1); printf("%9ld ", dn->dstat.st_size);
#endif #endif
#endif #endif
} }

4
ls.c
View File

@ -652,9 +652,9 @@ static int list_single(struct dnode *dn)
(ls_disp_hr==TRUE)? 0: 1)); (ls_disp_hr==TRUE)? 0: 1));
#else #else
#if _FILE_OFFSET_BITS == 64 #if _FILE_OFFSET_BITS == 64
printf("%9lld ", dn->dstat.st_size>>1); printf("%9lld ", dn->dstat.st_size);
#else #else
printf("%9ld ", dn->dstat.st_size>>1); printf("%9ld ", dn->dstat.st_size);
#endif #endif
#endif #endif
} }