cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: sftp postquote command rename fix/diff question

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 9 May 2007 13:43:33 -0700

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.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-05-09