[Asterisk-cvs] asterisk/apps app_system.c,1.8,1.9
citats at lists.digium.com
citats at lists.digium.com
Mon Mar 22 12:38:17 CST 2004
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/home/citats/cvs/asterisk/apps
Modified Files:
app_system.c
Log Message:
Make app_system.c use ast_safe_system
Index: app_system.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_system.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- app_system.c 27 Feb 2004 06:58:39 -0000 1.8
+++ app_system.c 22 Mar 2004 17:34:21 -0000 1.9
@@ -17,6 +17,7 @@
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
+#include <asterisk/app.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
@@ -53,7 +54,7 @@
}
LOCAL_USER_ADD(u);
/* Do our thing here */
- res = system((char *)data);
+ res = ast_safe_system((char *)data);
if ((res < 0) && (errno != ECHILD)) {
ast_log(LOG_WARNING, "Unable to execute '%s'\n", (char *)data);
res = -1;
More information about the svn-commits
mailing list