summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);