1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

test_smbclient_tarmode.pl: sanitize $DIR + whitespace

Signed-off-by: Aurélien Aptel <aurelien.aptel@gmail.com>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jim McDonough <jmcd@samba.org>
This commit is contained in:
Aurélien Aptel 2013-08-05 18:57:54 +02:00 committed by Jim McDonough
parent 977c26d8b0
commit 7088302d24

View File

@ -185,6 +185,7 @@ my $TAR = "$TMP/tarmode.tar";
$LOCALPATH =~ s{[/\\]+$}{}g;
$SHARE =~ s{[/\\]+$}{}g;
$HOST =~ s{[/\\]+$}{}g;
$DIR =~ s{^\.[/\\]+$}{}g;
$DIR =~ s{[/\\]+$}{}g;
if (!-d $LOCALPATH) {
@ -346,7 +347,7 @@ sub test_creation_long_path {
my $d = "a"x130;
my @all;
for(qw( foo/a bar/b )) {
for (qw( foo/a bar/b )) {
push @all, File->new_remote("$d/$_");
}