Skip to content

Commit

Permalink
Fix default open mode in redbean unix.open()
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Sep 14, 2024
1 parent 7d2c363 commit ed1f992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/lua/lunix.c
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ static int LuaUnixOpen(lua_State *L) {
return SysretInteger(
L, "open", olderr,
openat(luaL_optinteger(L, 4, AT_FDCWD), luaL_checkstring(L, 1),
luaL_optinteger(L, 2, O_RDONLY), luaL_optinteger(L, 3, 0)));
luaL_optinteger(L, 2, O_RDONLY), luaL_optinteger(L, 3, 0644)));
}

// unix.tmpfd()
Expand Down

0 comments on commit ed1f992

Please sign in to comment.