From: Michael Jerris Date: Fri, 26 Sep 2008 17:36:01 +0000 (+0000) Subject: if we want to override system function in lua we should do so from mod_lua, not hack... X-Git-Tag: v1.0.2~1122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6754c028d7e0b1a43295f126f66393525dc7de69;p=thirdparty%2Ffreeswitch.git if we want to override system function in lua we should do so from mod_lua, not hack the lib. We did the same thing for exit. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9661 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/languages/mod_lua/lua/loslib.c b/src/mod/languages/mod_lua/lua/loslib.c index 025d494aba..da06a572ac 100644 --- a/src/mod/languages/mod_lua/lua/loslib.c +++ b/src/mod/languages/mod_lua/lua/loslib.c @@ -36,7 +36,7 @@ static int os_pushresult (lua_State *L, int i, const char *filename) { static int os_execute (lua_State *L) { - lua_pushinteger(L, switch_system(luaL_optstring(L, 1, NULL), 1)); + lua_pushinteger(L, system(luaL_optstring(L, 1, NULL))); return 1; }