summaryrefslogtreecommitdiffstats
path: root/perl-install/fs/remote
diff options
context:
space:
mode:
authorAurélien Lefebvre <alefebvre@mandriva.com>2009-08-17 12:51:59 +0000
committerAurélien Lefebvre <alefebvre@mandriva.com>2009-08-17 12:51:59 +0000
commite1c5622998ca97b88d502f3cf0659d46b34a1217 (patch)
treeed1570004b841181e780310974e7c2b2aa3a7b64 /perl-install/fs/remote
parent178a5b2b34a1fb642740b51ae8b042b6e20a2231 (diff)
downloaddrakx-e1c5622998ca97b88d502f3cf0659d46b34a1217.tar
drakx-e1c5622998ca97b88d502f3cf0659d46b34a1217.tar.gz
drakx-e1c5622998ca97b88d502f3cf0659d46b34a1217.tar.bz2
drakx-e1c5622998ca97b88d502f3cf0659d46b34a1217.tar.xz
drakx-e1c5622998ca97b88d502f3cf0659d46b34a1217.zip
- diskdrake : when user does not specify user/pass with davfs2, fallback to nobody/nobody
Diffstat (limited to 'perl-install/fs/remote')
-rw-r--r--perl-install/fs/remote/davfs.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/fs/remote/davfs.pm b/perl-install/fs/remote/davfs.pm
index 8c2062c19..f6571b502 100644
--- a/perl-install/fs/remote/davfs.pm
+++ b/perl-install/fs/remote/davfs.pm
@@ -12,8 +12,10 @@ sub fstab_entry_to_credentials {
my ($part) = @_;
my ($options, $unknown) = fs::mount_options::unpack($part);
- $options->{'username='} && $options->{'password='} or return;
my %h = map { $_ => delete $options->{"$_="} } qw(username password);
+ foreach (qw(username password)) {
+ $h{$_} = 'nobody' if !$h{$_};
+ }
$h{mntpoint} = $part->{mntpoint} or return;
fs::mount_options::pack_($part, $options, $unknown), \%h;
}