Dolda2000 GitWeb
/
pdm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
64f81f0
)
Fixed sshsocket bug.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 7 Jan 2013 06:22:57 +0000
(07:22 +0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 7 Jan 2013 06:22:57 +0000
(07:22 +0100)
pdm/sshsock.py
patch
|
blob
|
blame
|
history
diff --git
a/pdm/sshsock.py
b/pdm/sshsock.py
index
44fd113
..
d96f4ff
100644
(file)
--- a/
pdm/sshsock.py
+++ b/
pdm/sshsock.py
@@
-17,6
+17,14
@@
class sshsocket(object):
raise socket.error("unexpected reply from %s: %r" % (host, head))
head = self.recv(1)
if head == "+":
+ buf = ""
+ while True:
+ r = self.recv(1)
+ if r == "":
+ raise socket.error("unexpected EOF in SSH socket stream")
+ elif r == "\n":
+ break
+ buf += r
return
elif head == "-":
buf = ""