It is the second time that i come to you guys, the 1st one the answer came like from the Gods of Perl, not just from Monks =).

This question still concerned about Amanda Backup and bugs about weird caracters from my language (portuguese).

/usr/libexec/amanda/application/amsamba act like a filter for smbclient (app for backup windows shares) output, parsing lines to find errors and other usefull information.

The problem that still happening is:

Unmatched ( in regex; marked by <-- HERE in m/NT_STATUS_OK opening remote file design_grafico_17a_legislatura - deputadosdep_carlosantonioÅ3CT VISITADOSmosaico.ai ( <-- HERE design_grafico_17a_legislatura - deputadosdep_carlosantonioÅ3CT VISITADOS)/ at /usr/libexec/amanda/application/amsamba line 743, <GEN1> line 4.]

Line 743: return if $line =~$line =~ /Server not using user level security and no password supplied./;

Full code: https://github.com/zmanda/amanda/blob/master/application-src/amsamba.pl

How can i avoid this error guys?

Im not a programer =), so i realy need you.

After fix this i will submit a patch =).

UPDATE:

I UNDERTOOD THE PROBLEM

A folder with name "2013" is transformed in "Å3" because of "\2013"

I need to be sure that $line values wont be transformed like this.

UPDATE 2:

Im trying to solve this with:

return if m/\Q$line\E/ =~ m/\Q$line\E/ =~ /Server not using user level security and no password supplied/;

Tomorrow i will know if this fix the Amanda Backup.

SOLVED

To use m/\Q$line\E/ solved Amanda Backup problem.

=) Posted patch for amanda issues at https://github.com/zmanda/amanda/issues/48


In reply to Perl Unmatched Errors by platbr

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.