diff options
author | 2023-01-16 16:30:33 -0800 | |
---|---|---|
committer | 2023-01-16 16:30:33 -0800 | |
commit | c83d56c75defc8af8e843429743a073aa106e5e1 (patch) | |
tree | 0588db1db2442509bfad70d006ae4be2d1972907 | |
parent | 7dd28bbdd99b31cc88abe4b309ed52aff64be9c2 (diff) | |
download | bun-c83d56c75defc8af8e843429743a073aa106e5e1.tar.gz bun-c83d56c75defc8af8e843429743a073aa106e5e1.tar.zst bun-c83d56c75defc8af8e843429743a073aa106e5e1.zip |
Update c-bindings.cpp
-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); |