From c986f92dc5d8ef9c8e95e242633052c3e1fff979 Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Sat, 22 Oct 2005 06:38:43 +0000 Subject: [PATCH] [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-69] i think seek_cur had a bug here --- paramiko/sftp_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paramiko/sftp_file.py b/paramiko/sftp_file.py index 477aec1..3770f2d 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 = ''