From: Loïc Blot Date: Sat, 21 Jan 2017 21:05:54 +0000 (+0100) Subject: Remove os.exit from the Lua secure sandbox (#5090) X-Git-Tag: 0.4.16~500 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=39123fcce5e983e83234971571b3cfaa458970b5;p=oweals%2Fminetest.git Remove os.exit from the Lua secure sandbox (#5090) os.exit will exit not using proper resource liberation paths. Mods should call the proper exit mod using our API --- diff --git a/src/script/cpp_api/s_security.cpp b/src/script/cpp_api/s_security.cpp index 1b1f148cd..be2b884cc 100644 --- a/src/script/cpp_api/s_security.cpp +++ b/src/script/cpp_api/s_security.cpp @@ -99,7 +99,6 @@ void ScriptApiSecurity::initializeSecurity() "clock", "date", "difftime", - "exit", "getenv", "setlocale", "time",