[BusyBox 0000802]: stat shows bogus information for 64 bits values

bugs at busybox.net bugs at busybox.net
Tue Mar 28 05:49:14 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:              03-27-2006 21:49 PST
====================================================================== 
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. 

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                          
======================================================================




More information about the busybox-cvs mailing list