mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix SSH remoting error on Windows platform (#11907)
This commit is contained in:
committed by
Travis Plunk
parent
e2c05a7470
commit
09d376ec9a
@@ -2548,7 +2548,12 @@ namespace System.Management.Automation.Runspaces
|
||||
|
||||
try
|
||||
{
|
||||
var cmdLine = string.Format(CultureInfo.InvariantCulture, @"""{0}"" {1}", startInfo.FileName, startInfo.Arguments);
|
||||
// Create process start command line with filename and argument list.
|
||||
var cmdLine = string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
@"""{0}"" {1}",
|
||||
startInfo.FileName,
|
||||
string.Join(' ', startInfo.ArgumentList));
|
||||
|
||||
lpStartupInfo.hStdInput = new SafeFileHandle(stdInPipeClient.DangerousGetHandle(), false);
|
||||
lpStartupInfo.hStdOutput = new SafeFileHandle(stdOutPipeClient.DangerousGetHandle(), false);
|
||||
|
||||
Reference in New Issue
Block a user