aboutsummaryrefslogtreecommitdiffstats
path: root/main/manager.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-30 01:07:57 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-30 01:07:57 +0000
commitcaaa8825cbadf6462c33c9eaf705c23c40cce800 (patch)
treeb4d7c088d4933caf4e734033e42d8aed67905084 /main/manager.c
parent5cc20ab54811500406e599d16fd4df0b8bf482c9 (diff)
Merged revisions 273144 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r273144 | tilghman | 2010-06-29 20:07:02 -0500 (Tue, 29 Jun 2010) | 8 lines Permission checking for the system application is backwards. (closes issue #17550) Reported by: kenner Patches: manager.c.diff uploaded by kenner (license 1040) Tested by: kenner ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@273145 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/manager.c')
-rw-r--r--main/manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/manager.c b/main/manager.c
index faa6538e4..5bbeec0fc 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -2523,7 +2523,7 @@ static int action_originate(struct mansession *s, const struct message *m)
/* To run the System application (or anything else that goes to shell), you must have the additional System privilege */
if (!(s->session->writeperm & EVENT_FLAG_SYSTEM)
&& (
- strcasestr(app, "system") == 0 || /* System(rm -rf /)
+ strcasestr(app, "system") || /* System(rm -rf /)
TrySystem(rm -rf /) */
strcasestr(app, "exec") || /* Exec(System(rm -rf /))
TryExec(System(rm -rf /)) */