From 0f4ecd93abb49da1c0f54452936f73e3a8537391 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Wed, 26 Jun 2024 08:54:26 -0500 Subject: [PATCH] Fix #1469 --- src/core/os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/os.c b/src/core/os.c index a7bfdb25..7fb42f4a 100644 --- a/src/core/os.c +++ b/src/core/os.c @@ -2668,7 +2668,7 @@ JANET_CORE_FN(os_open, } else if (write_flag && !read_flag) { open_flags |= O_WRONLY; } else { - open_flags = O_RDWR; + open_flags |= O_RDWR; } do {