[
https://issues.apache.org/jira/browse/VCL-676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13777716#comment-13777716
]
Andy Kurth commented on VCL-676:
--------------------------------
Author: arkurth
Date: Mon Feb 25 19:05:28 2013
New Revision: 1449816
URL: http://svn.apache.org/r1449816
Log:
VCL-676
Fixed command in OS.pm::remove_lines_from_file. Changed single quotes to
doubles and escaped them.
Modified:
vcl/trunk/managementnode/lib/VCL/Module/OS.pm
Modified: vcl/trunk/managementnode/lib/VCL/Module/OS.pm
URL:
http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/Module/OS.pm?rev=1449816&r1=1449815&r2=1449816&view=diff
> OS.pm::remove_lines_from_file not escaping characters correctly
> ---------------------------------------------------------------
>
> Key: VCL-676
> URL: https://issues.apache.org/jira/browse/VCL-676
> Project: VCL
> Issue Type: Bug
> Components: vcld (backend)
> Affects Versions: 2.3, 2.3.1, 2.3.2
> Reporter: Andy Kurth
> Assignee: Andy Kurth
> Priority: Minor
> Fix For: 2.3.3
>
>
> OS.pm::remove_lines_from_file not escaping characters correctly. As a
> result, the following error is generated:
> |28235|2104839:2193277|image| ---- WARNING ----
> |28235|2104839:2193277|image| 2013-02-25
> 13:37:09|28235|2104839:2193277|image|OS.pm:remove_lines_from_file(1973)|failed
> to remove lines containing '^arkurth .*' from '/etc/sudoers' on blade2c1-2
> |28235|2104839:2193277|image| command: echo -n 'before:' ; grep -c
> '^userid.*' /etc/sudoers 2>&1 ; sed -i -e '/^userid.*/d' /etc/sudoers 2>&1 ;
> echo -n 'after:' ; grep -c '^userid.*' /etc/sudoers 2>&1
> ...
> |28235|2104839:2193277|image| sed: -e expression #1, char 9: unterminated
> address regex
> |28235|2104839:2193277|image| after:.:0
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira