diff options
author | Aurélien Aptel <aurelien.aptel@gmail.com> | 2013-06-28 03:35:21 +0200 |
---|---|---|
committer | Jim McDonough <jmcd@samba.org> | 2013-11-05 08:42:40 -0500 |
commit | c5ae61f3eb44b7b7b7743e798a41e5a985d349a4 (patch) | |
tree | 8659089ed984d7bb822a72276f0d9c796ea09c28 /source3/script | |
parent | d07d89a11e21e51ec92a1743fb7e54a823ce4453 (diff) | |
download | samba-c5ae61f3eb44b7b7b7743e798a41e5a985d349a4.tar.gz samba-c5ae61f3eb44b7b7b7743e798a41e5a985d349a4.tar.xz samba-c5ae61f3eb44b7b7b7743e798a41e5a985d349a4.zip |
test_smbclient_tarmode.pl: remove unused functions
Signed-off-by: Aurélien Aptel <aurelien.aptel@gmail.com>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jim McDonough <jmcd@samba.org>
Diffstat (limited to 'source3/script')
-rwxr-xr-x | source3/script/tests/test_smbclient_tarmode.pl | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/source3/script/tests/test_smbclient_tarmode.pl b/source3/script/tests/test_smbclient_tarmode.pl index fe6e7a2f4e..5501001059 100755 --- a/source3/script/tests/test_smbclient_tarmode.pl +++ b/source3/script/tests/test_smbclient_tarmode.pl @@ -363,33 +363,6 @@ sub smb_tar { smb_client((length($cmd) ? ('-c', $cmd) : ()), @rest); } - -# print find(1)-like output of the share -# ex: dump_tree(smb_tree()) -sub dump_tree { - my ($t, $path) = @_; - $path = '' if(!defined $path); - - for my $f (@{$t->{dir}}) { - if($f->{attr}{D}) { - # print final slash on dir - print $path.'/'.$f->{fn},"/\n"; - dump_tree($f, $path.'/'.$f->{fn}); - } else { - print $path.'/'.$f->{fn},"\n"; - } - } -} - -sub get_file { - my ($fullpath, @flags) = @_; - my ($file, $dir) = fileparse($fullpath); - - my @files = smb_ls($dir); - my @res = grep {$_->{fn} eq $file} @files; - return @res ? $res[0] : undef; -} - sub random { my ($min, $max) = @_; ($min, $max) = ($max, $min) if($min > $max); |