Index: native_client_sdk/src/libraries/nacl_io/passthroughfs/passthrough_fs.cc |
diff --git a/native_client_sdk/src/libraries/nacl_io/passthroughfs/passthrough_fs.cc b/native_client_sdk/src/libraries/nacl_io/passthroughfs/passthrough_fs.cc |
index 2858faf54dade76169f5fb9f5ca2d331b4f06e0b..abee3894e866fab547d9b777c29ce0bbe3b8280e 100644 |
--- a/native_client_sdk/src/libraries/nacl_io/passthroughfs/passthrough_fs.cc |
+++ b/native_client_sdk/src/libraries/nacl_io/passthroughfs/passthrough_fs.cc |
@@ -22,10 +22,11 @@ Error PassthroughFs::Init(const FsInitArgs& args) { |
void PassthroughFs::Destroy() { |
} |
-Error PassthroughFs::Open(const Path& path, int mode, ScopedNode* out_node) { |
+Error PassthroughFs::OpenWithMode(const Path& path, int open_flags, |
+ mode_t mode, ScopedNode* out_node) { |
out_node->reset(NULL); |
int real_fd; |
- int error = _real_open(path.Join().c_str(), mode, 0666, &real_fd); |
+ int error = _real_open(path.Join().c_str(), open_flags, mode, &real_fd); |
if (error) |
return error; |