summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-12-04 16:58:33 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-12-04 16:58:33 +0000
commitced9efddf499e45657888af153538e291b5bfa49 (patch)
treef3c2893e49fe2f3522bc10df89bc68c4dea38ea8
parent5e84203a09aa1f869286d7fea4355adf649bc80b (diff)
downloaddrakx-backup-do-not-use-ced9efddf499e45657888af153538e291b5bfa49.tar
drakx-backup-do-not-use-ced9efddf499e45657888af153538e291b5bfa49.tar.gz
drakx-backup-do-not-use-ced9efddf499e45657888af153538e291b5bfa49.tar.bz2
drakx-backup-do-not-use-ced9efddf499e45657888af153538e291b5bfa49.tar.xz
drakx-backup-do-not-use-ced9efddf499e45657888af153538e291b5bfa49.zip
cleaner smbclient call
-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 a9f8907ce..02c107bd1 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 $ip = $server->{ip} ? " -I $server->{ip}" : '';
+ my $name = $server->{name} || $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 $server->{name}$ip$group`) {
+ foreach (`smbclient -U% -L $name -I $server->{ip}$group`) {
chomp;
s/^\t//;
my ($name, $type, $comment) = unpack "A15 A10 A*", $_;