mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-04 07:51:21 +00:00 
			
		
		
		
	utils/ssh: Fix paramiko streams
Ensure that we use the input stream for reading.
This commit is contained in:
		@@ -691,11 +691,11 @@ class SshConnection(SshConnectionBase):
 | 
			
		||||
                w = os.fdopen(w, 'wb')
 | 
			
		||||
            # Turn a file descriptor into a file-like object
 | 
			
		||||
            elif isinstance(stream_out, int) and stream_out >= 0:
 | 
			
		||||
                r = os.fdopen(stream_out, 'rb')
 | 
			
		||||
                r = os.fdopen(stream_in, 'rb')
 | 
			
		||||
                w = os.fdopen(stream_out, 'wb')
 | 
			
		||||
            # file-like object
 | 
			
		||||
            else:
 | 
			
		||||
                r = stream_out
 | 
			
		||||
                r = stream_in
 | 
			
		||||
                w = stream_out
 | 
			
		||||
 | 
			
		||||
            return (r, w)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user