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

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

Issue 565763002: Plumbing though mode parameter to open, since fusefs can make use of it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years, 3 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/kernel_wrap_win.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc b/native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc
index d6177881b1d881f4caca08b282798a43f6f841fb..18c903dba8c292f90f3e2dae6ba6400251cdc13e 100644
--- a/native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc
@@ -129,9 +129,6 @@ int _mkdir(const char* path) {
}
int _open(const char* path, int oflag, ...) {
-#if 0
- // TODO(binji): ki_open should use the pmode parameter. When it does, this
- // will be necessary to add in.
va_list list;
int pmode = 0;
if (oflag & _O_CREAT) {
@@ -139,8 +136,7 @@ int _open(const char* path, int oflag, ...) {
pmode = va_arg(list, int);
va_end(list);
}
-#endif
- return ki_open(path, oflag);
+ return ki_open(path, oflag, (mode_t) pmode);
}
int _sopen(const char* path, int oflag, int shflag) {

Powered by Google App Engine
This is Rietveld 408576698