Uploaded image for project: 'VCL'
  1. VCL
  2. VCL-676

OS.pm::remove_lines_from_file not escaping characters correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.3, 2.3.1, 2.3.2
    • 2.4
    • vcld (backend)
    • None

    Description

      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

      Attachments

        Activity

          People

            arkurth Andrew Kurth
            arkurth Andrew Kurth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: