1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

utils/ssh: Fix paramiko stdin

Ensure that we open the stdin stream for writing instead
of read only.
This commit is contained in:
Marc Bonnici 2021-06-29 13:24:43 +01:00 committed by setrofim
parent 79783fa09a
commit 7065847f77

View File

@ -660,7 +660,7 @@ class SshConnection(SshConnectionBase):
# Read are not buffered so we will always get the data as soon as # Read are not buffered so we will always get the data as soon as
# they arrive # they arrive
return ( return (
channel.makefile_stdin(), channel.makefile_stdin('w', 0),
channel.makefile(), channel.makefile(),
channel.makefile_stderr(), channel.makefile_stderr(),
) )