Subject: Re: Attempting to wrap sftp in Qt

Re: Attempting to wrap sftp in Qt

From: Mark Roden <mmroden_at_gmail.com>
Date: Tue, 3 May 2011 06:22:17 -0700

Yeah, you're right. This is a server-side issue.

I thought I was establishing the connections incorrectly, and I was.
I needed to be more careful about the way that I handled the handles,
as well as making sure that I was going to the right path.

It's now working, and all the tests are working as welll.

Thanks for the feedback,
Mark

On Tue, May 3, 2011 at 5:27 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Mon, 2 May 2011, Mark Roden wrote:
>
>> It looks like I'm not able to overwrite the file, despite setting the
>> flags: LIBSSH2_FXF_WRITE|LIBSSH2_FXF_CREAT|LIBSSH2_FXF_TRUNC
>>
>> The first time, the writing works, and if I delete the file from the
>> server using a separate session, then the writing works again.
>>
>> Are there other flags or things to check so that a file can be
>> overwritten, some unix permission I'm not setting when the file is initially
>> created?
>
> If the server refuses the operation then so it does, there's not a lot
> libssh2 can do about to convince that it should do something else. If there
> would be permission problems then surely you shouldn't be allowed to remove
> it either?
>
> I would look into the server logs for clues.
>
> --
>
>  / daniel.haxx.se
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-05-03