diff --git a/src/os/portable/os-impl-posix-files.c b/src/os/portable/os-impl-posix-files.c index 43628d5df..a6113f381 100644 --- a/src/os/portable/os-impl-posix-files.c +++ b/src/os/portable/os-impl-posix-files.c @@ -199,7 +199,7 @@ int32 OS_FileChmod_Impl(const char *local_path, uint32 access) int fd; /* Open file to avoid filename race potential */ - fd = open(local_path, O_RDONLY); + fd = open(local_path, O_RDONLY, 0); if (fd < 0) { return OS_ERROR;