From cb662899723d796ab3930b9aba46d9bba2e68d14 Mon Sep 17 00:00:00 2001 From: sjing Date: Tue, 24 Apr 2012 02:06:12 +0000 Subject: [PATCH] the fix for bug 3364300 - not display passwords in xcat commands or logs. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12321 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/runsqlcmd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-server/sbin/runsqlcmd b/xCAT-server/sbin/runsqlcmd index c6d4f7061..b0a30a1dc 100755 --- a/xCAT-server/sbin/runsqlcmd +++ b/xCAT-server/sbin/runsqlcmd @@ -298,6 +298,8 @@ sub runmysqlcmd if ($? > 0) # error { $rc = $? >> 8; + # secure password + $cmd = "$mysql --user=$admin --password=xxxxxx --host=$hostname $dbname \< $file "; xCAT::MsgUtils->message("SE", "The command $cmd had errors. Return=$rc"); }