diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-30 01:07:02 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-30 01:07:02 +0000 |
commit | 1c583ebb309192299afa61a48db4bbf68e8c10a1 (patch) | |
tree | e2f486d133bb75b5e9031201bc70d1fbf5aa3c9d /main | |
parent | d2601fd10e6f64b774ef28a0e615f1dd40a11074 (diff) |
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/trunk@273144 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/manager.c b/main/manager.c index 9761629ef..9c9c5aa84 100644 --- a/main/manager.c +++ b/main/manager.c @@ -3893,7 +3893,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 /)) */ |