Subject: Re: Possible libssh2_sftp_rename_ex bug?

Re: Possible libssh2_sftp_rename_ex bug?

From: Jonas Schnelli <>
Date: Thu, 10 Nov 2011 12:13:09 +0100

> On Wed, 9 Nov 2011, Jonas Schnelli wrote:
>> When the file (rename destination) exists, i'll always get a "Operation Failed" from sftp_libssh2_strerror. I'm (curl's) using the LIBSSH2_SFTP_RENAME_OVERWRITE flag.
> I gave this a quick glance yesterday.
> Isn't it so that this bit named LIBSSH2_SFTP_RENAME_OVERWRITE was added to the SFTP protocol later on and that the server you're using (openssh's?) simply doesn't know about it?

Thanks Daniel.
That's probably the problem.

I switch this question to the libcurl mailinglist for a ongoing discussion about atomic upload over sftp.


> See for details on version differences in the SFTP protocol.
> --
> /
> _______________________________________________
> libssh2-devel

Received on 2011-11-10