Gellule Xg wrote:
> I can never get anything back from sftp_read after using sftp_seek64
> to get away from EOF. I've tried with the following patch, and at
> least for me, things seem to work better.
> +++ b/src/sftp.c
> @@ -1933,6 +1933,9 @@ libssh2_sftp_seek64(LIBSSH2_SFTP_HANDLE *handle,
> libssh2_uint64_t offset)
> handle->u.file.data_left = handle->u.file.data_len = 0;
> handle->u.file.data = NULL;
> + /* reset EOF to False */
> + handle->u.file.eof = FALSE;
Does this also work correctly for the case of seek64:ing to EOF?
If yes, then please re-send a patch created by git format-patch after
you have created a clean commit locally. If you are not familiar
enough with git then please say so, and we can make the commit for
you. In that case, please mention what name and email address you
would like the patch to have as author.
Received on 2012-01-26