[asterisk-bugs] [Asterisk 0016858]: [patch] asterisk command history loads as unusable garbage

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Mar 5 11:26:12 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16858 
====================================================================== 
Reported By:                jw-asterisk
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16858
Category:                   Core/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.2.2 
JIRA:                       SWP-932 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 no change required
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-02-17 21:19 CST
Last Modified:              2010-03-05 11:26 CST
====================================================================== 
Summary:                    [patch] asterisk command history loads as unusable
garbage
Description: 
When using asterisk interactively with command interface a history file is
created (~/.asterisk_history). Lines written to the history file are
white-space encoded (in ast_el_write_history:history:case
H_SAVE:history_save:strvis).

But when the history file is loaded it reverse (strunvis) is not
performed.  Therefore the history becomes unusable garbage.
====================================================================== 

---------------------------------------------------------------------- 
 (0119031) jcollie (manager) - 2010-03-05 11:26
 https://issues.asterisk.org/view.php?id=16858#c119031 
---------------------------------------------------------------------- 
Aaaand, I've uploaded a patch that will fix the history problem in Fedora. 
I'm not going to do a special build just for this patch but it'll start
showing up in packages as new versions of Asterisk are released.

I'm going to test this out with the internal editline library and if it
works I really think that it should be included with the released branches
as it actually reduces the amount of code. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-03-05 11:26 jcollie        Note Added: 0119031                          
======================================================================




More information about the asterisk-bugs mailing list