From: James Golovich Date: Mon, 22 Mar 2004 17:34:21 +0000 (+0000) Subject: Make app_system.c use ast_safe_system X-Git-Tag: 1.0.0-rc1~870 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dc41c40ebacbba306010d8b1e8899fac4e578110;p=thirdparty%2Fasterisk.git Make app_system.c use ast_safe_system git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2523 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_system.c b/apps/app_system.c index b13bcedc81..010137f996 100755 --- a/apps/app_system.c +++ b/apps/app_system.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -53,7 +54,7 @@ static int system_exec(struct ast_channel *chan, void *data) } 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;