From 707a9fbcaf2b13cb839663537702c42cbe9175fa Mon Sep 17 00:00:00 2001 From: sjing Date: Tue, 21 Sep 2010 01:52:08 +0000 Subject: [PATCH] >> instead of > to db.cache git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7550 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/bind.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/bind.pm b/xCAT-server/lib/xcat/plugins/bind.pm index 1a54f4828..9f1705146 100755 --- a/xCAT-server/lib/xcat/plugins/bind.pm +++ b/xCAT-server/lib/xcat/plugins/bind.pm @@ -894,7 +894,7 @@ sub FIXUP if (@forwarders) { my $tmpfile = $DBDir . "db.cache"; - my $cmd = qq~dig @"$forwarders[0]" . ns > $tmpfile~; + my $cmd = qq~dig @"$forwarders[0]" . ns >> $tmpfile~; my $outref = xCAT::Utils->runcmd("$cmd", 0); if ($::RUNCMD_RC != 0) { @@ -908,14 +908,17 @@ sub FIXUP { my $nothing; open($nothing, ">>", $DBDir . "db.cache"); + close($nothing); + } } else { my $nothing; open($nothing, ">>", $DBDir . "db.cache"); + close($nothing); + } - close($nothing); printf $file "%-30s\tIN PTR localhost.\n", &REVERSE("127.0.0.1"); close($file); }