| 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) {
|
|
|