[NaCl SDK] Never return st_size == 0 for directory nodes
commit1ee3626cbd39116f57ede2a22d5acea9f0fbfc32
authorsbc <sbc@chromium.org>
Sat, 22 Aug 2015 17:52:29 +0000 (22 10:52 -0700)
committerCommit bot <commit-bot@chromium.org>
Sat, 22 Aug 2015 17:53:06 +0000 (22 17:53 +0000)
treea1bb282c07038e62e4582c677b17b226827741a9
parent461303becab665006c6c26cdd8b6fe7120b00fc5
[NaCl SDK] Never return st_size == 0 for directory nodes

The scandir code in newlib assumes that st_size of
direcoties is a reflection of the number of entries,
and in particular has a early out when st_size == 0.

Review URL: https://codereview.chromium.org/1304983004

Cr-Commit-Position: refs/heads/master@{#344986}
native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs_node.cc
native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc