summaryrefslogtreecommitdiffstats
path: root/perl-install/fs/remote/smb.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2009-01-15 14:36:25 +0000
committerPascal Rigaux <pixel@mandriva.com>2009-01-15 14:36:25 +0000
commitdd391dffa50661a22a2211c8246802ab62d381fe (patch)
treea5af68cfdef7939c7ec003126c8fea681f793d70 /perl-install/fs/remote/smb.pm
parent6da23babacbaea9be6098df2f7701b3728367608 (diff)
downloaddrakx-dd391dffa50661a22a2211c8246802ab62d381fe.tar
drakx-dd391dffa50661a22a2211c8246802ab62d381fe.tar.gz
drakx-dd391dffa50661a22a2211c8246802ab62d381fe.tar.bz2
drakx-dd391dffa50661a22a2211c8246802ab62d381fe.tar.xz
drakx-dd391dffa50661a22a2211c8246802ab62d381fe.zip
revert previous commit (it's all wrong)
Diffstat (limited to 'perl-install/fs/remote/smb.pm')
-rw-r--r--perl-install/fs/remote/smb.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/fs/remote/smb.pm b/perl-install/fs/remote/smb.pm
index a1b603cf0..378aa6a1e 100644
--- a/perl-install/fs/remote/smb.pm
+++ b/perl-install/fs/remote/smb.pm
@@ -15,7 +15,7 @@ sub to_fstab_entry {
my $part = $class->to_fstab_entry_raw($e, 'cifs');
if ($e->{server}{username}) {
my ($options, $unknown) = fs::mount_options::unpack($part);
- $options->{"$_="} = $e->{server}{$_} foreach qw(username password);
+ $options->{"$_="} = $e->{server}{$_} foreach qw(username password domain);
fs::mount_options::pack($part, $options, $unknown);
}
$part;
@@ -40,7 +40,7 @@ sub smbclient {
my $ip = $server->{ip} ? "-I $server->{ip}" : '';
my $group = $server->{group} ? qq( -W "$server->{group}") : '';
- my $U = $server->{username} ? sprintf("%s/%s%%%s", @$server{'username', 'password'}) : '%';
+ 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`) {
if (my ($type, $v1, $v2) = /(.*)\|(.*)\|(.*)/) {