From 97edcc23e488d4bfe82ad2ff2b25ae961bb7e3af Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 4 Feb 2010 14:45:51 +0000 Subject: [PATCH] fix more warnings git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5146 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Utils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index 797a033ef..fbb69e2fc 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -854,7 +854,7 @@ sub runcmd my ($class, $cmd, $exitcode, $refoutput) = @_; $::RUNCMD_RC = 0; - if (!$xCAT::Utils::NO_STDERR_REDIRECT) + if (defined($xCAT::Utils::NO_STDERR_REDIRECT) && !$xCAT::Utils::NO_STDERR_REDIRECT) { if (!($cmd =~ /2>&1$/)) { $cmd .= ' 2>&1'; }