From 39123fcce5e983e83234971571b3cfaa458970b5 Mon Sep 17 00:00:00 2001
From: Loïc Blot <nerzhul@users.noreply.github.com>
Date: Sat, 21 Jan 2017 22:05:54 +0100
Subject: 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
---
 src/script/cpp_api/s_security.cpp | 1 -
 1 file changed, 1 deletion(-)

(limited to 'src/script/cpp_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",
-- 
cgit v1.2.3