Skip to content

Commit

Permalink
don't auto load os lib
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed May 17, 2021
1 parent 6e87cbe commit 95f70ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion linit.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ static const luaL_Reg loadedlibs[] = {
{LUA_COLIBNAME, luaopen_coroutine},
{LUA_TABLIBNAME, luaopen_table},
{LUA_IOLIBNAME, luaopen_io},
{LUA_OSLIBNAME, luaopen_os},
// RUSEFI: don't auto load OS lib

This comment has been minimized.

Copy link
@rusefillc

rusefillc Nov 13, 2021

is this something to PR back into Lua or not really? how weird is what we are doing here?

// {LUA_OSLIBNAME, luaopen_os},
{LUA_STRLIBNAME, luaopen_string},
{LUA_MATHLIBNAME, luaopen_math},
{LUA_UTF8LIBNAME, luaopen_utf8},
Expand Down

0 comments on commit 95f70ea

Please sign in to comment.