[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:
Robey Pointer 2005-10-22 06:38:43 +00:00
parent d42d6af12b
commit c986f92dc5
1 changed files with 1 additions and 1 deletions

View File

@ -124,8 +124,8 @@ class SFTPFile (BufferedFile):
if whence == self.SEEK_SET:
self._realpos = self._pos = offset
elif whence == self.SEEK_CUR:
self._realpos += offset
self._pos += offset
self._realpos = self._pos
else:
self._realpos = self._pos = self._get_size() + offset
self._rbuffer = ''