cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Patch to report the error message returned by libssh2 when using scp

From: James Housley <jim_at_thehousleys.net>
Date: Thu, 5 Jul 2007 08:49:13 -0400

On Jul 4, 2007, at 10:09 AM, Gavrie Philipson wrote:

> Hi,
>
> I'm using curl with libssh2 to upload a file to a remote host using
> the SCP protocol.
> Now, if the remote side returns an error message such as "Permission
> denied" or "No such file or directory", it is not reported by curl.
> Instead, is returns the message "curl: (2) failed init" since the
> error handling code returns CURLE_FAILED_INIT.
>
> The attached patch reports the error message that is returned by
> libssh2. It goes together with a patch to libssh2 (that I've posted on
> the libssh2 list) that returns remote error messages (which the
> current libssh2 doesn't do).

This has been commited, even without the libssh2 patch it returns
that the error was SSH related.

Jim

--
/"\   ASCII Ribbon Campaign  .
\ / - NO HTML/RTF in e-mail  .
  X  - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
                      http://www.FreeBSD.org     The Power to Serve
jim@TheHousleys.Net  http://www.TheHousleys.net
---------------------------------------------------------------------
The wise man built his network upon Un*x.
     The foolish man built his network upon Windows.
Received on 2007-07-05