mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 07:29:23 +00:00
Fix default open mode in redbean unix.open()
This commit is contained in:
parent
7d2c363963
commit
ed1f992cb7
1 changed files with 1 additions and 1 deletions
2
third_party/lua/lunix.c
vendored
2
third_party/lua/lunix.c
vendored
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue