From bcc9f1292acf6e19e880bcf8314ad8df37c380fd Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 18 Jan 2017 09:45:47 -0500 Subject: [PATCH] Fix support of password with shell characters --- xCAT-genesis-scripts/bin/bmcsetup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-genesis-scripts/bin/bmcsetup b/xCAT-genesis-scripts/bin/bmcsetup index 1be072fcd..47c441f23 100755 --- a/xCAT-genesis-scripts/bin/bmcsetup +++ b/xCAT-genesis-scripts/bin/bmcsetup @@ -445,7 +445,7 @@ for bmcp in $BMCPW; do TRIES=0 # Set the password for the specified user - while ! ipmitool -d $idev user set password $USERSLOT $bmcp; do + while ! ipmitool -d $idev user set password $USERSLOT "$bmcp"; do sleep 1 let TRIES=TRIES+1 if [ $TRIES -gt $TIMEOUT ]; then break; fi