summaryrefslogtreecommitdiffstats
path: root/perl-install/network/smb.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-11-30 17:19:30 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-11-30 17:19:30 +0000
commita3d5079d63d53d7a639162a03a89fa8fdcfbee8a (patch)
treeca49369788e9776ddfce6e0b93e33413908b6ea0 /perl-install/network/smb.pm
parent2f9e01cce5dba4fa11add841f63d0afea97d85eb (diff)
downloaddrakx-a3d5079d63d53d7a639162a03a89fa8fdcfbee8a.tar
drakx-a3d5079d63d53d7a639162a03a89fa8fdcfbee8a.tar.gz
drakx-a3d5079d63d53d7a639162a03a89fa8fdcfbee8a.tar.bz2
drakx-a3d5079d63d53d7a639162a03a89fa8fdcfbee8a.tar.xz
drakx-a3d5079d63d53d7a639162a03a89fa8fdcfbee8a.zip
fileshare should be ok, handle diskdrake --fileshare, fix smb import
Diffstat (limited to 'perl-install/network/smb.pm')
-rw-r--r--perl-install/network/smb.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/network/smb.pm b/perl-install/network/smb.pm
index d5c128b41..a9f8907ce 100644
--- a/perl-install/network/smb.pm
+++ b/perl-install/network/smb.pm
@@ -35,13 +35,13 @@ sub find_servers() {
sub find_exports {
my ($server) = @_;
my @l;
- my $name = $server->{name} ? " -L $server->{name}" : '';
+ my $ip = $server->{ip} ? " -I $server->{ip}" : '';
my $group = $server->{group} ? " -W $server->{group}" : '';
# WARNING: using smbclient -L is ugly. It can't handle more than 15
# characters shared names
- foreach (`smbclient -U% -L -I $server->{ip}$name$group`) {
+ foreach (`smbclient -U% -L $server->{name}$ip$group`) {
chomp;
s/^\t//;
my ($name, $type, $comment) = unpack "A15 A10 A*", $_;