[BusyBox 0000802]: stat shows bogus information for 64 bits values
bugs at busybox.net
bugs at busybox.net
Wed Apr 12 00:55:50 UTC 2006
A NOTE has been added to this issue.
======================================================================
http://busybox.net/bugs/view.php?id=802
======================================================================
Reported By: mbizon
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 802
Category: Other
Reproducibility: always
Severity: major
Priority: normal
Status: assigned
======================================================================
Date Submitted: 03-27-2006 21:43 PST
Last Modified: 04-11-2006 17:55 PDT
======================================================================
Summary: stat shows bogus information for 64 bits values
Description:
stat uses %lu format on (maybe) 64 bits values casted to uintmax_t
(st_size for example).
This prints bogus values on my system where uintmax_t is 8 bytes wide.
mips32 le
gcc version 4.0.2.
uclibc 0.9.28 built with large file support.
======================================================================
----------------------------------------------------------------------
mbizon - 03-27-06 21:49
----------------------------------------------------------------------
Oops, I meant "built _without_ large file support", st_size is 4 bytes.
----------------------------------------------------------------------
anemo - 03-27-06 23:59
----------------------------------------------------------------------
The "j" modifier can be used to print intmax_t/uintmax_t.
I just sent a patch to busybox ML.
----------------------------------------------------------------------
mbizon - 04-11-06 17:55
----------------------------------------------------------------------
Is it commit 14755 ?
It has no effect for me, there are other places where intmax_t is used
that have
not been changed to the right modifier (in statfs and in stat with
CONFIG_FEATURE_STAT_FORMAT).
Thanks !
Issue History
Date Modified Username Field Change
======================================================================
03-27-06 21:43 mbizon New Issue
03-27-06 21:43 mbizon Status new => assigned
03-27-06 21:43 mbizon Assigned To => BusyBox
03-27-06 21:49 mbizon Note Added: 0001199
03-27-06 23:59 anemo Note Added: 0001200
04-11-06 17:55 mbizon Note Added: 0001267
======================================================================
More information about the busybox-cvs
mailing list