diff options
author | James Golovich <james@gnuinter.net> | 2004-03-22 17:34:21 +0000 |
---|---|---|
committer | James Golovich <james@gnuinter.net> | 2004-03-22 17:34:21 +0000 |
commit | dc41c40ebacbba306010d8b1e8899fac4e578110 (patch) | |
tree | 445d7beb38bfef0e1b6a847e1705662ffa223d86 /apps | |
parent | 71eafcf3dababedcc5e60a84996f274840a04eb3 (diff) |
Make app_system.c use ast_safe_system
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2523 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_system.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_system.c b/apps/app_system.c index b13bcedc8..010137f99 100755 --- a/apps/app_system.c +++ b/apps/app_system.c @@ -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 @@ 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; |