2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 10:06:39 +00:00

Merge pull request #2671 from bybai/fixhost

fix issue 2657 makehosts erroneously deletes entries from /etc/hosts
This commit is contained in:
yangsong 2017-03-20 11:35:36 +08:00 committed by GitHub
commit 725a44ad83

View File

@ -74,7 +74,7 @@ sub addnode
{
if ($hosts[$idx] =~ /^${ip}\s/
or $hosts[$idx] =~ /^\d+\.\d+\.\d+\.\d+\s+${node}[\s\.r]/)
or $hosts[$idx] =~ /^\d+\.\d+\.\d+\.\d+\s+${node}[\s\.\r]/)
{
if ($foundone)
{