[Freeswitch-svn] [commit] r9661 - freeswitch/trunk/src/mod/languages/mod_lua/lua

Freeswitch SVN mikej at freeswitch.org
Fri Sep 26 13:36:01 EDT 2008


Author: mikej
Date: Fri Sep 26 13:36:01 2008
New Revision: 9661

Modified:
   freeswitch/trunk/src/mod/languages/mod_lua/lua/loslib.c

Log:
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.

Modified: freeswitch/trunk/src/mod/languages/mod_lua/lua/loslib.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_lua/lua/loslib.c	(original)
+++ freeswitch/trunk/src/mod/languages/mod_lua/lua/loslib.c	Fri Sep 26 13:36:01 2008
@@ -36,7 +36,7 @@
 
 
 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;
 }
 



More information about the Freeswitch-svn mailing list