summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-06-28 16:06:52 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-06-28 16:06:52 +0000
commit8ca92b87576d9aa7e98654186fcac7855fdec530 (patch)
treed90128c913fc69dfd22d605c2d7696bdd7027bc5 /perl-install
parent976c422c961730f8cfeb496522ba98e0235e2142 (diff)
downloaddrakx-8ca92b87576d9aa7e98654186fcac7855fdec530.tar
drakx-8ca92b87576d9aa7e98654186fcac7855fdec530.tar.gz
drakx-8ca92b87576d9aa7e98654186fcac7855fdec530.tar.bz2
drakx-8ca92b87576d9aa7e98654186fcac7855fdec530.tar.xz
drakx-8ca92b87576d9aa7e98654186fcac7855fdec530.zip
handle spaces in mount points and devices (using \040)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/fs.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index 53c729aa3..9b5d6236f 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -44,6 +44,9 @@ sub read_fstab {
# prefering type "smbfs" over "smb"
$type = 'smbfs';
}
+ $mntpoint =~ s/\\040/ /g;
+ $dev =~ s/\\040/ /g;
+
my $h = { device => $dev, mntpoint => $mntpoint, type => $type, options => $options, if_($all_options, freq => $freq, passno => $passno) };
($h->{major}, $h->{minor}) = unmakedev((stat "$prefix$dev")[6]);
@@ -190,6 +193,9 @@ sub fstab_to_string {
my $dev = $_->{device_alias} ? "/dev/$_->{device_alias}" : $device;
+ $mntpoint =~ s/ /\\040/g;
+ $dev =~ s/ /\\040/g;
+
# handle bloody supermount special case
if ($options =~ /supermount/) {
my @l = grep { $_ ne 'supermount' } split(',', $options);