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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |