| Index: native_client_sdk/src/libraries/nacl_io/node.cc
|
| diff --git a/native_client_sdk/src/libraries/nacl_io/node.cc b/native_client_sdk/src/libraries/nacl_io/node.cc
|
| index 2024e9753b18f05619c02bf52dd08e58f033c85e..373f96656ec3e7bda14fb21ea56623c6099ecc67 100644
|
| --- a/native_client_sdk/src/libraries/nacl_io/node.cc
|
| +++ b/native_client_sdk/src/libraries/nacl_io/node.cc
|
| @@ -200,15 +200,15 @@ void Node::SetType(int type) {
|
| }
|
|
|
| bool Node::IsaDir() {
|
| - return (stat_.st_mode & S_IFDIR) != 0;
|
| + return GetType() == S_IFDIR;
|
| }
|
|
|
| bool Node::IsaFile() {
|
| - return (stat_.st_mode & S_IFREG) != 0;
|
| + return GetType() == S_IFREG;
|
| }
|
|
|
| bool Node::IsaSock() {
|
| - return (stat_.st_mode & S_IFSOCK) != 0;
|
| + return GetType() == S_IFSOCK;
|
| }
|
|
|
| Error Node::Isatty() {
|
|
|