platbr has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Unmatched Errors
by McA (Priest) on Aug 16, 2013 at 14:48 UTC | |
|
Re: Perl Unmatched Errors
by Laurent_R (Canon) on Aug 16, 2013 at 17:16 UTC | |
by platbr (Initiate) on Aug 16, 2013 at 20:54 UTC | |
by ww (Archbishop) on Aug 17, 2013 at 00:03 UTC | |
|
Re: Perl Unmatched Errors
by ww (Archbishop) on Aug 16, 2013 at 20:17 UTC | |
by platbr (Initiate) on Aug 16, 2013 at 21:12 UTC | |
by glasswalk3r (Friar) on Aug 19, 2013 at 18:05 UTC | |
by platbr (Initiate) on Aug 16, 2013 at 21:02 UTC |