1
0
mirror of https://github.com/ARM-software/devlib.git synced 2024-10-05 18:30:50 +01: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
# they arrive
return (
channel.makefile_stdin(),
channel.makefile_stdin('w', 0),
channel.makefile(),
channel.makefile_stderr(),
)