diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-02-20 20:19:38 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-02-20 20:19:38 +0000 |
commit | f3690f171b76d302264f093fa787d663e6865a1b (patch) | |
tree | af9b2d8c93e8529e0a155f9036afab550020dfb5 | |
parent | b9493d8ad1604866c5e300ff73cc95f37172d6d8 (diff) | |
download | drakx-f3690f171b76d302264f093fa787d663e6865a1b.tar drakx-f3690f171b76d302264f093fa787d663e6865a1b.tar.gz drakx-f3690f171b76d302264f093fa787d663e6865a1b.tar.bz2 drakx-f3690f171b76d302264f093fa787d663e6865a1b.tar.xz drakx-f3690f171b76d302264f093fa787d663e6865a1b.zip |
warn non-ascii chars in mount point (cf bug #1588)
-rw-r--r-- | perl-install/fsedit.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm index 6da3aeaf2..98259fc15 100644 --- a/perl-install/fsedit.pm +++ b/perl-install/fsedit.pm @@ -527,6 +527,7 @@ sub check_mntpoint { $mntpoint eq '' || isSwap($part) || isNonMountable($part) and return; $mntpoint =~ m|^/| or die \N("Mount points must begin with a leading /"); + $mntpoint =~ m|[\x7f-\xff]| and cdie \N("Mount points should contain only alphanumerical characters"); $mntpoint ne $part->{mntpoint} && has_mntpoint($mntpoint, $all_hds) and die \N("There is already a partition with mount point %s\n", $mntpoint); cdie \N("You've selected a software RAID partition as root (/). |