From e8b4f0b76cc61c8c7736ad28f5aeb443c851a29b Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 24 Sep 2023 18:12:35 +0300 Subject: [PATCH 44/44] fcdb: Allow use of lua_io module See osdn #48721 Signed-off-by: Marko Lindqvist --- common/scriptcore/luascript.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/scriptcore/luascript.c b/common/scriptcore/luascript.c index bddc08fa97..2a95f76ea8 100644 --- a/common/scriptcore/luascript.c +++ b/common/scriptcore/luascript.c @@ -102,7 +102,7 @@ static luaL_Reg luascript_lualibs_secure[] = { }; static luaL_Reg luascript_lualibs_permissive[] = { - /* Using default libraries excluding: package, io, and bit32 */ + /* Using default libraries excluding: package, and bit32 */ {"_G", luaopen_base}, {LUA_COLIBNAME, luaopen_coroutine}, {LUA_TABLIBNAME, luaopen_table}, @@ -110,6 +110,7 @@ static luaL_Reg luascript_lualibs_permissive[] = { {LUA_UTF8LIBNAME, luaopen_utf8}, {LUA_MATHLIBNAME, luaopen_math}, {LUA_DBLIBNAME, luaopen_debug}, + {LUA_IOLIBNAME, luaopen_io }, {LUA_OSLIBNAME, luaopen_os}, {NULL, NULL} }; -- 2.40.1