mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-30 01:45:32 +00:00
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@12311 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
@ -172,9 +172,17 @@ sub fsp_api_action {
|
||||
|
||||
#print "cmd: $cmd\n";
|
||||
$SIG{CHLD} = 'DEFAULT';
|
||||
# secure passwords in verbose mode
|
||||
my $tmpv = $::VERBOSE;
|
||||
if($action =~ /^add_connection$/)
|
||||
{
|
||||
# password involved
|
||||
$::VERBOSE = 0;
|
||||
}
|
||||
$res = xCAT::Utils->runcmd($cmd, -1);
|
||||
#$res = "good";
|
||||
$Rc = $::RUNCMD_RC;
|
||||
$::VERBOSE = $tmpv;
|
||||
|
||||
##################
|
||||
# output the prompt
|
||||
|
Reference in New Issue
Block a user