[asterisk-bugs] [Asterisk 0016842]: [patch] [regression] system() dialplan function fails (-1 returned) when argument is single quoted
Asterisk Bug Tracker
noreply at bugs.digium.com
Thu Mar 11 14:27:38 CST 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=16842
======================================================================
Reported By: ip-rob
Assigned To: tilghman
======================================================================
Project: Asterisk
Issue ID: 16842
Category: Applications/app_system
Reproducibility: always
Severity: minor
Priority: normal
Status: closed
Target Version: 1.6.2.7
Asterisk Version: SVN
JIRA: SWP-930
Regression: Yes
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 2010-02-16 12:30 CST
Last Modified: 2010-03-11 14:27 CST
======================================================================
Summary: [patch] [regression] system() dialplan function
fails (-1 returned) when argument is single quoted
Description:
The system() dialplan fails to execute a command that is passed and quoted
with single quoted (e.g. system('ls -l /tmp')). Previous versions of
asterisk allowed the single quote.
Should allow single quotes for compatibility.
======================================================================
----------------------------------------------------------------------
(0119281) svnbot (reporter) - 2010-03-11 14:27
https://issues.asterisk.org/view.php?id=16842#c119281
----------------------------------------------------------------------
Repository: asterisk
Revision: 251879
_U branches/1.6.2/
U branches/1.6.2/apps/app_system.c
------------------------------------------------------------------------
r251879 | tilghman | 2010-03-11 14:27:37 -0600 (Thu, 11 Mar 2010) | 15
lines
Merged revisions 251877 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r251877 | tilghman | 2010-03-11 14:25:02 -0600 (Thu, 11 Mar 2010) | 8
lines
If the argument to the system application is quoted, ensure we remove
the quotes before trying to execute.
(closes issue https://issues.asterisk.org/view.php?id=16842)
Reported by: ip-rob
Patches:
20100310__issue16842.diff.txt uploaded by tilghman (license 14)
Tested by: ip-rob
........
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=251879
Issue History
Date Modified Username Field Change
======================================================================
2010-03-11 14:27 svnbot Checkin
2010-03-11 14:27 svnbot Note Added: 0119281
======================================================================
More information about the asterisk-bugs
mailing list