X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=lib%2FBackupPC%2FView.pm;h=f550b00cf11b470af05c03f8c1ab815207fc05aa;hb=refs%2Ftags%2Fv3_0_0beta1;hp=d879de2a5b827e55303827fb8c9686262e446e93;hpb=4cdaa6b8a9f5161ee2da4371d68cbbad41248ea0;p=BackupPC.git diff --git a/lib/BackupPC/View.pm b/lib/BackupPC/View.pm index d879de2..f550b00 100644 --- a/lib/BackupPC/View.pm +++ b/lib/BackupPC/View.pm @@ -31,7 +31,7 @@ # #======================================================================== # -# Version 3.0.0beta0, released 11 Jul 2006. +# Version 3.0.0beta1, released 30 Jul 2006. # # See http://backuppc.sourceforge.net. # @@ -140,7 +140,7 @@ sub dirCache } } foreach my $file ( @dir ) { - $file = $1 if ( $file =~ /(.*)/ ); + $file = $1 if ( $file =~ /(.*)/s ); my $fileUM = $file; $fileUM = $m->{bpc}->fileNameUnmangle($fileUM) if ( $mangle ); #print(STDERR "Doing $fileUM\n"); @@ -249,7 +249,7 @@ sub shareList my @dir = readdir(DIR); closedir(DIR); foreach my $file ( @dir ) { - $file = $1 if ( $file =~ /(.*)/ ); + $file = $1 if ( $file =~ /(.*)/s ); next if ( $file eq "attrib" && $mangle || $file eq "." || $file eq ".." @@ -289,7 +289,7 @@ sub fileAttrib my($m, $backupNum, $share, $path) = @_; #print(STDERR "fileAttrib($backupNum, $share, $path)\n"); - if ( $path =~ s{(.*)/+(.+)}{$1} ) { + if ( $path =~ s{(.*)/+(.+)}{$1}s ) { my $file = $2; $m->dirCache($backupNum, $share, $path); return $m->{files}{$file}; @@ -401,7 +401,7 @@ sub dirHistory } } foreach my $file ( @dir ) { - $file = $1 if ( $file =~ /(.*)/ ); + $file = $1 if ( $file =~ /(.*)/s ); my $fileUM = $file; $fileUM = $m->{bpc}->fileNameUnmangle($fileUM) if ( $mangle ); #print(STDERR "Doing $fileUM\n");