From 9a83b92026fb5545a9bc71e6db1a1d86f5a1118c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 1 Dec 2003 11:58:37 +0000 Subject: fix removing domain name (esp. when domain name is empty) --- perl-install/network/nfs.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install') 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) }; } } -- cgit v1.2.1