From 178a5b2b34a1fb642740b51ae8b042b6e20a2231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Lefebvre?= Date: Mon, 17 Aug 2009 12:49:43 +0000 Subject: - diskdrake : store credentials in davfs2 secret file before mounting --- perl-install/fs/mount.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'perl-install/fs/mount.pm') diff --git a/perl-install/fs/mount.pm b/perl-install/fs/mount.pm index 3e2d36938..f7bea2ae4 100644 --- a/perl-install/fs/mount.pm +++ b/perl-install/fs/mount.pm @@ -73,6 +73,9 @@ sub mount { } elsif ($fs eq 'ext2' && !$b_rdonly) { fsck_ext2($dev, $o_wait_message); } elsif ($fs eq 'davfs2') { + require fs::remote::davfs; + # We have to store credentials in davfs2 secret file before mounting + fs::remote::davfs::mountpoint_credentials_save($where, \@mount_opt); # username and password options should be handled by /etc/davfs2/secrets file @mount_opt = grep { !/^(username|password)=/ } @mount_opt; } -- cgit v1.2.1