mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-03 19:22:27 +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(
|
return SysretInteger(
|
||||||
L, "open", olderr,
|
L, "open", olderr,
|
||||||
openat(luaL_optinteger(L, 4, AT_FDCWD), luaL_checkstring(L, 1),
|
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()
|
// unix.tmpfd()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue