diff options
Diffstat (limited to 'perl-install/network/smb.pm')
-rw-r--r-- | perl-install/network/smb.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/network/smb.pm b/perl-install/network/smb.pm index af201fe68..ef98f6945 100644 --- a/perl-install/network/smb.pm +++ b/perl-install/network/smb.pm @@ -39,11 +39,11 @@ sub smbclient { my ($server) = @_; my $name = $server->{name} || $server->{ip}; my $ip = $server->{ip} ? "-I $server->{ip}" : ''; - my $group = $server->{group} ? " -W $server->{group}" : ''; + my $group = $server->{group} ? qq( -W "$server->{group}") : ''; my $U = $server->{username} ? sprintf("%s/%s%%%s", @$server{'domain', 'username', 'password'}) : '%'; my %h; - foreach (`smbclient -g -U $U -L $name $ip$group 2>/dev/null`) { + foreach (`smbclient -g -U "$U" -L "$name" $ip$group 2>/dev/null`) { if (my ($type, $v1, $v2) = /(.*)\|(.*)\|(.*)/) { push @{$h{$type}}, [ $v1, $v2 ]; } elsif (/^Error returning browse list/) { |