Fix fstat() to filter st_mode correctly
Fix fstat() to filter st_mode correctly

The code was reading the output struct instead of the input.

BUG: http://code.google.com/p/nativeclient/issues/detail?id=309

Review URL: http://codereview.chromium.org/647021

git-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@1532 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

nacl-webkit/native_client,nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client