[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:25:03 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:                     ready for testing
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:              
====================================================================== 
Date Submitted:             2010-02-16 12:30 CST
Last Modified:              2010-03-11 14:25 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0119279) svnbot (reporter) - 2010-03-11 14:25
 https://issues.asterisk.org/view.php?id=16842#c119279 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 251877

U   trunk/apps/app_system.c

------------------------------------------------------------------------
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=251877 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-03-11 14:25 svnbot         Checkin                                      
2010-03-11 14:25 svnbot         Note Added: 0119279                          
======================================================================




More information about the asterisk-bugs mailing list