diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-04-18 11:55:03 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:51:04 -0500 |
commit | f4ec06d8db4a8056183c63b3e55daf0abbac1e10 (patch) | |
tree | c73d353d806d7dd395b7576d0eba77cf29ced96b /source4 | |
parent | f9e5d77b9c272f7accf3b833e490734279fab796 (diff) | |
download | samba-f4ec06d8db4a8056183c63b3e55daf0abbac1e10.tar.gz samba-f4ec06d8db4a8056183c63b3e55daf0abbac1e10.tar.bz2 samba-f4ec06d8db4a8056183c63b3e55daf0abbac1e10.zip |
r22332: escape bad chars with '_' to form a nice filename
metze
(This used to be commit 3d3c0b36cbb0a34b3e241575d79427936aaa8306)
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/script/tests/selftest.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/script/tests/selftest.pl b/source4/script/tests/selftest.pl index a264d7466c..7a8faa8870 100755 --- a/source4/script/tests/selftest.pl +++ b/source4/script/tests/selftest.pl @@ -659,7 +659,9 @@ NETBIOSNAME=\$NETBIOSNAME\" && bash'"); setup_env($envname); - my $pcap_file = "$pcap_dir/$name.cap"; + my $shname = $name; + $shname =~ s%[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\-]%_%g; + my $pcap_file = "$pcap_dir/$shname.cap"; SocketWrapper::setup_pcap($pcap_file) if ($opt_socket_wrapper_pcap); my $result; |