From 3cc5e0cdf4dcce386b5f85b121d23a3766870fb3 Mon Sep 17 00:00:00 2001 From: jjohnson2 Date: Thu, 26 Mar 2015 15:52:44 -0400 Subject: [PATCH] Fix asu handling of exotic characters Exotic characters that may be interpreted by shell are now quoted to prevent any interpolation. --- xCAT-client/bin/pasu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-client/bin/pasu b/xCAT-client/bin/pasu index 19f1d6b87..03dc6260c 100755 --- a/xCAT-client/bin/pasu +++ b/xCAT-client/bin/pasu @@ -225,7 +225,7 @@ sub asunode { } else { foreach my $a (@_) { $args .= ' ' . xCAT::Utils->quote($a); } } - my $cmd = "$::asucmd $args --host $bmc --user $username --password $passwd 2>&1 |"; + my $cmd = "$::asucmd $args --host '$bmc' --user '$username' --password '$passwd' 2>&1 |"; if ($::VERBOSE) { print "forking $cmd\n"; } my $pid = open($$out, $cmd); $pids{$pid} = $node;