diff options
-rw-r--r-- | src/bun.js/bindings/c-bindings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/bindings/c-bindings.cpp b/src/bun.js/bindings/c-bindings.cpp index d37dd12cb..7233aab99 100644 --- a/src/bun.js/bindings/c-bindings.cpp +++ b/src/bun.js/bindings/c-bindings.cpp @@ -20,7 +20,7 @@ extern "C" bool is_executable_file(const char* path) #ifdef __APPLE__ // O_EXEC is macOS specific - int fd = open(path, O_EXEC, O_CLOEXEC); + int fd = open(path, O_EXEC | O_CLOEXEC, 0); if (fd < 0) return false; close(fd); |