X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=bin%2FBackupPC_tarCreate;h=e0fd0fb90ad837a3befce38ae73d536f4065487a;hp=f704255449006fb89a9a46f831737b7fadeed836;hb=b81d2da5e16975674f011e4833337ac0fa24e0ea;hpb=617af75f7419e95a9c3ea05b05cf21957acc331c diff --git a/bin/BackupPC_tarCreate b/bin/BackupPC_tarCreate index f704255..e0fd0fb 100755 --- a/bin/BackupPC_tarCreate +++ b/bin/BackupPC_tarCreate @@ -53,7 +53,7 @@ # #======================================================================== # -# Version 3.0.0alpha, released 23 Jan 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # @@ -131,8 +131,7 @@ $Charset = $opts{e} if ( $opts{e} ne "" ); my $PathRemove = $1 if ( $opts{r} =~ /(.+)/ ); my $PathAdd = $1 if ( $opts{p} =~ /(.+)/ ); -if ( ($opts{s} !~ /^([\w\s.@\/$(){}[\]-]+)$/ - || $opts{s} =~ m{(^|/)\.\.(/|$)}) && $opts{s} ne "*" ) { +if ( $opts{s} =~ m{(^|/)\.\.(/|$)} ) { print(STDERR "$0: bad share name '$opts{s}'\n"); exit(1); }