Skip to content
Snippets Groups Projects
Commit d5084b8f authored by DarkGod's avatar DarkGod
Browse files

Removed an unsecure file access function

parent 05664778
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,7 @@ configuration "Debug"
targetdir "bin/Debug"
if _OPTIONS.luaassert then defines {"LUA_USE_APICHECK"} end
if _OPTIONS.pedantic then buildoptions { "-Wall" } end
defines {"TE4_LUA_ALLOW_GENERIC_IO"}
configuration "Release"
defines { "NDEBUG=1" }
......
......@@ -18,7 +18,9 @@ static const luaL_Reg lualibs[] = {
{"", luaopen_base},
{LUA_LOADLIBNAME, luaopen_package},
{LUA_TABLIBNAME, luaopen_table},
#ifdef TE4_LUA_ALLOW_GENERIC_IO
{LUA_IOLIBNAME, luaopen_io},
#endif
{LUA_OSLIBNAME, luaopen_os},
{LUA_STRLIBNAME, luaopen_string},
{LUA_MATHLIBNAME, luaopen_math},
......
......@@ -19,7 +19,9 @@ static const luaL_Reg lj_lib_load[] = {
{ "", luaopen_base },
{ LUA_LOADLIBNAME, luaopen_package },
{ LUA_TABLIBNAME, luaopen_table },
#ifdef TE4_LUA_ALLOW_GENERIC_IO
{ LUA_IOLIBNAME, luaopen_io },
#endif
{ LUA_OSLIBNAME, luaopen_os },
{ LUA_STRLIBNAME, luaopen_string },
{ LUA_MATHLIBNAME, luaopen_math },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment