note about ssh hostname sanitization
This commit is contained in:
parent
1cef791cf3
commit
2533acc7a2
1 changed files with 4 additions and 0 deletions
|
@ -287,6 +287,10 @@ data Endpoint
|
|||
--
|
||||
-- May generate console output, including error messages from ssh or the
|
||||
-- remote server, and ssh password prompting.
|
||||
--
|
||||
-- Note that this does not sanitize the hostname. It is the responsibility
|
||||
-- of the caller to avoid calling this with a value that ssh will
|
||||
-- interpert as an option, such as "-oProxyCommand="
|
||||
sshDiscoverEndpoint :: HostUser -> FilePath -> TransferRequestOperation -> IO (Maybe Endpoint)
|
||||
sshDiscoverEndpoint hostuser remotepath tro =
|
||||
(try (readProcess "ssh" ps "") :: IO (Either IOError String)) >>= \case
|
||||
|
|
Loading…
Reference in a new issue