summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
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) };
}
}