projects
/
BackupPC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updates in preparation for 3.0.0beta2:
[BackupPC.git]
/
bin
/
BackupPC_tarCreate
diff --git
a/bin/BackupPC_tarCreate
b/bin/BackupPC_tarCreate
index
97b9878
..
e0fd0fb
100755
(executable)
--- a/
bin/BackupPC_tarCreate
+++ b/
bin/BackupPC_tarCreate
@@
-53,7
+53,7
@@
#
#========================================================================
#
#
#========================================================================
#
-# Version 3.0.0
alpha, released 23 Jan
2006.
+# Version 3.0.0
beta2, released 11 Nov
2006.
#
# See http://backuppc.sourceforge.net.
#
#
# See http://backuppc.sourceforge.net.
#
@@
-96,7
+96,8
@@
EOF
exit(1);
}
exit(1);
}
-if ( $opts{h} !~ /^([\w\.\s-]+)$/ ) {
+if ( $opts{h} !~ /^([\w\.\s-]+)$/
+ || $opts{h} =~ m{(^|/)\.\.(/|$)} ) {
print(STDERR "$0: bad host name '$opts{h}'\n");
exit(1);
}
print(STDERR "$0: bad host name '$opts{h}'\n");
exit(1);
}
@@
-130,7
+131,7
@@
$Charset = $opts{e} if ( $opts{e} ne "" );
my $PathRemove = $1 if ( $opts{r} =~ /(.+)/ );
my $PathAdd = $1 if ( $opts{p} =~ /(.+)/ );
my $PathRemove = $1 if ( $opts{r} =~ /(.+)/ );
my $PathAdd = $1 if ( $opts{p} =~ /(.+)/ );
-if ( $opts{s}
!~ /^([\w\s.\/$(){}[\]-]+)$/ && $opts{s} ne "*"
) {
+if ( $opts{s}
=~ m{(^|/)\.\.(/|$)}
) {
print(STDERR "$0: bad share name '$opts{s}'\n");
exit(1);
}
print(STDERR "$0: bad share name '$opts{s}'\n");
exit(1);
}