summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-01-21 22:05:54 +0100
committerGitHub <noreply@github.com>2017-01-21 22:05:54 +0100
commit39123fcce5e983e83234971571b3cfaa458970b5 (patch)
tree22860af032be9f72f3a43c784f14cff3c9759fc6
parent6d5a40713347424084af8ba04e76278961506881 (diff)
downloadminetest-39123fcce5e983e83234971571b3cfaa458970b5.tar.gz
minetest-39123fcce5e983e83234971571b3cfaa458970b5.tar.bz2
minetest-39123fcce5e983e83234971571b3cfaa458970b5.zip
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
-rw-r--r--src/script/cpp_api/s_security.cpp1
1 files changed, 0 insertions, 1 deletions
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",