Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: native_client_sdk/src/libraries/nacl_io/node.cc

Issue 320983002: [NaCl SDK] nacl_io: Allows subtree of html5fs to be mounted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {

Powered by Google App Engine
This is Rietveld 408576698