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

Unified Diff: native_client_sdk/src/libraries/nacl_io/memfs/mem_fs.cc

Issue 660353003: [NaCl SDK] nacl_io: Fix utime() on directories. (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
Index: native_client_sdk/src/libraries/nacl_io/memfs/mem_fs.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/memfs/mem_fs.cc b/native_client_sdk/src/libraries/nacl_io/memfs/mem_fs.cc
index 38c5070546306a4a8b9eeeeece60124adfc36ab8..70da25ce58fa96593570ca2e0f9f22c82df7f70a 100644
--- a/native_client_sdk/src/libraries/nacl_io/memfs/mem_fs.cc
+++ b/native_client_sdk/src/libraries/nacl_io/memfs/mem_fs.cc
@@ -105,10 +105,6 @@ Error MemFs::OpenWithMode(const Path& path, int open_flags, mode_t mode,
} else {
// Opening an existing file.
- // Directories can only be opened read-only.
- if (node->IsaDir() && (open_flags & 3) != O_RDONLY)
- return EISDIR;
-
// If we were expected to create it exclusively, fail
if (open_flags & O_EXCL)
return EEXIST;
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc ('k') | native_client_sdk/src/tests/nacl_io_test/filesystem_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698