Applied patch from David Douthitt to fix problem where ls reports half the
file size. Should close bug #1140.
This commit is contained in:
parent
cc7b4f39fc
commit
9a2144663a
@ -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
4
ls.c
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user