summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-01-06 13:38:05 +0000
committerThierry Vignaud <tv@mandriva.org>2009-01-06 13:38:05 +0000
commit62ca5f089c1c9bab86a512d3e841371ae90ba648 (patch)
tree854134d8bfd615baba9e597d2c3667cb2ab04637
parentf8690924b2fbc0560188ec9ea069e07721a528ee (diff)
downloaddrakx-62ca5f089c1c9bab86a512d3e841371ae90ba648.tar
drakx-62ca5f089c1c9bab86a512d3e841371ae90ba648.tar.gz
drakx-62ca5f089c1c9bab86a512d3e841371ae90ba648.tar.bz2
drakx-62ca5f089c1c9bab86a512d3e841371ae90ba648.tar.xz
drakx-62ca5f089c1c9bab86a512d3e841371ae90ba648.zip
(write_fstab) fix crashing on writing fstab when using SMB (#46084) [Backported from trunk]
-rw-r--r--perl-install/NEWS1
-rw-r--r--perl-install/fs.pm1
2 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index adbfc01a3..97b8e85f4 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,4 +1,5 @@
- diskdrake:
+ o fix crashing on writing fstab when using SMB (#46084)
o --nfs: handle "host:/" (#44320)
Version 11.71.2 - 5 December 2008
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index 4fc6fa7a2..2ecc946e2 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -306,6 +306,7 @@ sub write_fstab {
my ($s, $smb_credentials, $davfs_credentials) = prepare_write_fstab($fstab, $o_prefix, '');
renamef("$o_prefix/etc/fstab", "$o_prefix/etc/fstab.old");
output("$o_prefix/etc/fstab", $s);
+ require fs::remote::davfs;
fs::remote::smb::save_credentials($_) foreach @$smb_credentials;
fs::remote::davfs::save_credentials($davfs_credentials);
fs::dmcrypt::save_crypttab($all_hds) if @{$all_hds->{dmcrypts}};