| Index: native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc
|
| diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc b/native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc
|
| index 271aa6eef060f3cdc3e9e1ea975e88ff246e80ff..7bdf4f9862e29f4d03cbd011ed95cc1f87ae8152 100644
|
| --- a/native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc
|
| +++ b/native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc
|
| @@ -264,8 +264,8 @@ int WRAP(munmap)(void* addr, size_t length) {
|
| return REAL(munmap)(addr, length);
|
| }
|
|
|
| -int WRAP(open)(const char* pathname, int oflag, mode_t cmode, int* newfd) {
|
| - *newfd = ki_open(pathname, oflag);
|
| +int WRAP(open)(const char* pathname, int oflag, mode_t mode, int* newfd) {
|
| + *newfd = ki_open(pathname, oflag, mode);
|
| ERRNO_RTN(*newfd);
|
| }
|
|
|
| @@ -468,9 +468,9 @@ int _real_munmap(void* addr, size_t length) {
|
| return REAL(munmap)(addr, length);
|
| }
|
|
|
| -int _real_open(const char* pathname, int oflag, mode_t cmode, int* newfd) {
|
| +int _real_open(const char* pathname, int oflag, mode_t mode, int* newfd) {
|
| CHECK_REAL(open);
|
| - return REAL(open)(pathname, oflag, cmode, newfd);
|
| + return REAL(open)(pathname, oflag, mode, newfd);
|
| }
|
|
|
| int _real_open_resource(const char* file, int* fd) {
|
|
|