[project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-69]
i think seek_cur had a bug here
This commit is contained in:
parent
d42d6af12b
commit
c986f92dc5
|
@ -124,8 +124,8 @@ class SFTPFile (BufferedFile):
|
||||||
if whence == self.SEEK_SET:
|
if whence == self.SEEK_SET:
|
||||||
self._realpos = self._pos = offset
|
self._realpos = self._pos = offset
|
||||||
elif whence == self.SEEK_CUR:
|
elif whence == self.SEEK_CUR:
|
||||||
self._realpos += offset
|
|
||||||
self._pos += offset
|
self._pos += offset
|
||||||
|
self._realpos = self._pos
|
||||||
else:
|
else:
|
||||||
self._realpos = self._pos = self._get_size() + offset
|
self._realpos = self._pos = self._get_size() + offset
|
||||||
self._rbuffer = ''
|
self._rbuffer = ''
|
||||||
|
|
Loading…
Reference in New Issue