From 8ca92b87576d9aa7e98654186fcac7855fdec530 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 28 Jun 2002 16:06:52 +0000 Subject: handle spaces in mount points and devices (using \040) --- perl-install/fs.pm | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- cgit v1.2.1