Fix from John Rigby to fix stat() so it actually works.
Fix from John Rigby to fix stat() so it actually works.

joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc