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

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

Issue 648763003: [NaCl SDK] nacl_io: Mask mode before passing to Node::SetMode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | native_client_sdk/src/libraries/nacl_io/memfs/mem_fs_node.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/libraries/nacl_io/dir_node.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/dir_node.cc b/native_client_sdk/src/libraries/nacl_io/dir_node.cc
index f8b23e12b9d575cc8ba5641758640fe813b59a5b..d0dae30065e3d92004cc2b4b38f2b5cf766fc827 100644
--- a/native_client_sdk/src/libraries/nacl_io/dir_node.cc
+++ b/native_client_sdk/src/libraries/nacl_io/dir_node.cc
@@ -71,7 +71,7 @@ Error DirNode::GetDents(size_t offs,
Error DirNode::Fchmod(mode_t mode) {
AUTO_LOCK(node_lock_);
- SetMode(mode);
+ SetMode(mode & ~S_IFMT);
return 0;
}
« no previous file with comments | « no previous file | native_client_sdk/src/libraries/nacl_io/memfs/mem_fs_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698