From 5c92a9fb451eafa6830565e06b0696af0cae5997 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Mon, 11 Oct 2010 05:59:45 +0000 Subject: [PATCH] defect 3085064: fixed the problem that strip off hostname from CN when not set site.domain git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7803 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 088a8073e..4c8a16883 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -776,7 +776,7 @@ if ($inet6support) { $peerhost && $peerhost =~ s/\.$domain\.*$//; } else { # otherwise just strip off whatever comes after the first dot - $peerhost && $peerhost =~ s/^.*?\.//; + $peerhost && $peerhost =~ s/\..*//; } $peerhost && $peerhost =~ s/-eth\d*$//;