diff options
-rw-r--r-- | paramiko/sftp_file.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/sftp_file.py b/paramiko/sftp_file.py index 477aec16..3770f2d4 100644 --- a/paramiko/sftp_file.py +++ b/paramiko/sftp_file.py @@ -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 = '' |