Armadeus 3.4 Troubleshots: Difference between revisions

From ArmadeusWiki
(New page: Nothing reported yet... ;-) Category:Release)
 
No edit summary
Line 1: Line 1:
Nothing reported yet... ;-)
==stat() bad behaviour==
In armadeus-3.4, the stat() function does not return a correct file size in application programs compiled with -D_FILE_OFFSET_BITS=64.
This is caused by a wrong padding in the stat structure described in /sys/stat.h.
 
This affect boa, proftpd and potentially every program using stat() to obtain the size of a regular file.
===Workaround===
Sacrify the large file support:in Buildroot, remove "Enable large file (files > 2 Gb) support" in "Common Toolchain Options".


[[Category:Release]]
[[Category:Release]]

Revision as of 21:47, 6 June 2011

stat() bad behaviour

In armadeus-3.4, the stat() function does not return a correct file size in application programs compiled with -D_FILE_OFFSET_BITS=64. This is caused by a wrong padding in the stat structure described in /sys/stat.h.

This affect boa, proftpd and potentially every program using stat() to obtain the size of a regular file.

Workaround

Sacrify the large file support:in Buildroot, remove "Enable large file (files > 2 Gb) support" in "Common Toolchain Options".