cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: sftp postquote command rename fix/diff question

From: Kristian Gunstone <kristian.gunstone_at_pean.org>
Date: Wed, 9 May 2007 23:04:36 +0200

* Kristian Gunstone <kristian.gunstone_at_pean.org> [2007-05-09 22:54:04]:
> * Dan Fandrich <dan_at_coneharvesters.com> [2007-05-09 22:46:32]:
> > On Wed, May 09, 2007 at 10:20:04PM +0200, Kristian Gunstone wrote:
> > > Yes, I suppose you're right. However, the error returned is
> > > LIBSSH2_FX_FAILURE, or "Operation failed".
> >
> > Yes, this is a known problem with curl's SSH support. Patches would
> > be welcome!
> >
> > > This could pretty much be anything unless you actually
> > > called libssh2_sftp_stat from outside libcurl, which would seem to
> > > make libcurl almost redundant for this use.
> > >
> > > Do you have a suggestion how I could solve this dilemman or come with a
> > > better general solution?
> >
> > The curl functions sftp_libssh2_error_to_CURLE and
> > libssh2_session_error_to_CURLE are the obvious places to add more
> > verbose error reporting. Existing curl error codes for similar errors
> > can be reused.
>
> I'm working on a new method which just returns LIBSSH2_FX_FILE_ALREADY_EXISTS
> if fstat succeeds on the destination file.
>
> I think this seems like a nice solution - I'll be done in a bit!

I just realised I can't use a LIBSSH2_* return. Trying to find an
approproate CURLE_ return..
>
> >
> > >>> Dan
> > --
> > http://www.MoveAnnouncer.com The web change of address service
> > Let webmasters know that your web site has moved
>
> --
> Kristian Gunstone
> http://www.pulia.nu

-- 
Kristian Gunstone
http://www.pulia.nu
Received on 2007-05-09