From 2bbc51d240e969418972ab061d98929c926a2ec2 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 18 Jul 2008 20:22:45 +0000 Subject: [PATCH] -Fix hosts plugins strict deviation git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1903 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/hosts.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/hosts.pm b/xCAT-server/lib/xcat/plugins/hosts.pm index 27075de2f..3a997a774 100644 --- a/xCAT-server/lib/xcat/plugins/hosts.pm +++ b/xCAT-server/lib/xcat/plugins/hosts.pm @@ -1,5 +1,7 @@ # IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html package xCAT_plugin::hosts; +use strict; +use warnings; use xCAT::Table; use Data::Dumper; use File::Copy; @@ -54,6 +56,7 @@ sub process_request { my $bakname = "/etc/hosts.xcatbak"; copy("/etc/hosts",$bakname); } + my $rconf; open($rconf,"/etc/hosts"); # Read file into memory if ($rconf) { while (<$rconf>) {