summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-12-01 11:58:37 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-12-01 11:58:37 +0000
commit9a83b92026fb5545a9bc71e6db1a1d86f5a1118c (patch)
tree84d25c8500b4ebf0a767f2780a89ed82f3b10f55 /perl-install
parent7fa856e29ea680b0bc4f2a4ac130ccdb1b0d38ce (diff)
downloaddrakx-9a83b92026fb5545a9bc71e6db1a1d86f5a1118c.tar
drakx-9a83b92026fb5545a9bc71e6db1a1d86f5a1118c.tar.gz
drakx-9a83b92026fb5545a9bc71e6db1a1d86f5a1118c.tar.bz2
drakx-9a83b92026fb5545a9bc71e6db1a1d86f5a1118c.tar.xz
drakx-9a83b92026fb5545a9bc71e6db1a1d86f5a1118c.zip
fix removing domain name (esp. when domain name is empty)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/nfs.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/nfs.pm b/perl-install/network/nfs.pm
index 20c9055f3..39faa716e 100644
--- a/perl-install/network/nfs.pm
+++ b/perl-install/network/nfs.pm
@@ -49,8 +49,8 @@ sub find_servers {
while ($s = <$F2> || <$F3>) {
$quit = 0;
my ($ip, $name) = $s =~ /(\S+)\s+(\S+)/ or log::explanations("bad line in rpcinfo output"), next;
- $name =~ s/\Q.$domain//;
$name =~ s/\.$//;
+ $name =~ s/\Q.$domain\E$//;
$servers{$ip} ||= { ip => $ip, if_($name ne '(unknown)', name => $name) };
}
}