Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upQuote XAuthLocation before use #442
Conversation
|
Test note: If #441 is not merged, |
622cb95
to
cc24689
|
Repro steps:
|
XAuthLocationis supported in ssh configuration data and specifies the full pathname to an xauth binary (e.g."C:\Program Files\VcXsrv\xauth.exe"). On Windows, this is passed to the command interpreter (via _wsystem), which requires paths with spaces to be escaped or quoted. Use of a path with spaces will fail some X11 scenarios.This PR simply adds double-quotes
" "aroundXAuthLocationpaths right before they're used in X11 scenarios on Windows.The following constraints were assumed:
(fixes PowerShell/Win32-OpenSSH#1563, PowerShell/Win32-OpenSSH#1593)