diff --git a/hfile_s3.c b/hfile_s3.c index 30de86e27..a766b4da8 100644 --- a/hfile_s3.c +++ b/hfile_s3.c @@ -2063,7 +2063,7 @@ static off_t s3_seek(hFILE *fpv, off_t offset, int whence) { ks_clear(&fp->buffer); // resetting fp->buffer triggers a new remote read } - return fp->last_read; + return (off_t) pos; }