Quote password in plink command line, so it can contain spaces. Fixes issue #2667.

This commit is contained in:
Ansgar Becker
2011-12-30 13:06:10 +00:00
parent a83ca1c544
commit ea3cd84993

View File

@@ -885,7 +885,7 @@ begin
else
PlinkCmd := PlinkCmd + FParameters.Hostname;
if FParameters.SSHPassword <> '' then
PlinkCmd := PlinkCmd + ' -pw ' + FParameters.SSHPassword;
PlinkCmd := PlinkCmd + ' -pw "' + FParameters.SSHPassword + '"';
if FParameters.SSHPort > 0 then
PlinkCmd := PlinkCmd + ' -P ' + IntToStr(FParameters.SSHPort);
if FParameters.SSHPrivateKey <> '' then