X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=bin%2FBackupPC_checkArchiveConsistency;fp=bin%2FBackupPC_checkArchiveConsistency;h=169d0d3d0cbbf8c0da1cb7541e17b3ac4043b705;hp=eb202e121e99f97a97fc6609dc316f4d834b70b9;hb=1966ac8910411800d6bd5a61eacf3efbdaa3df2b;hpb=8028b56bcfb9f58351c7bb815f05107c76dea9be diff --git a/bin/BackupPC_checkArchiveConsistency b/bin/BackupPC_checkArchiveConsistency index eb202e1..169d0d3 100755 --- a/bin/BackupPC_checkArchiveConsistency +++ b/bin/BackupPC_checkArchiveConsistency @@ -33,7 +33,7 @@ my $sth = $dbh->prepare($sql); $sth->execute($dvd_nr); while (my $row = $sth->fetchrow_hashref()) { my $host_share = $row->{share}; - $host_share =~ s/(.*?):(.*)/$1_$2_/gi; + $host_share =~ s/(.*?):\/?(.*)/$1_$2_/gi; my $filename = $tar_dir."/".$host_share . $row->{num}.".tar.gz"; my (undef, undef, undef, undef, undef, undef, undef, $fs_size, undef, undef, undef, undef, undef) = stat($filename); print "checking $filename...";