Re: [libssh2] Patch to report the remote error message when using scp

2007-07-05 Thread Gavrie Philipson
Jim, Works great, thanks for the quick response. -- Gavrie On 7/5/07, James Housley <[EMAIL PROTECTED]> wrote: ... > Looking more it seems that it probably shouldn't return > PACKET_EAGAIN, because we should be reading from a packet we already > received. But, I did a more complete patch that a

Re: [libssh2] Patch to report the remote error message when using scp

2007-07-05 Thread James Housley
On Jul 5, 2007, at 12:30 AM, Gavrie Philipson wrote: Hi Jim, I'll admit that I'm not very familiar with the libssh2 code; this was just a first attempt. Now, I did test my patch on several remote hosts, not just on localhost, and it worked. Of course this may have been just a matter of luck, si

Re: [libssh2] Patch to report the remote error message when using scp

2007-07-04 Thread James Housley
On Jul 4, 2007, at 10:08 AM, Gavrie Philipson wrote: > Hi, > > I'm using libssh2 (incidentally, together with curl) 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

[libssh2] Patch to report the remote error message when using scp

2007-07-04 Thread Gavrie Philipson
Hi, I'm using libssh2 (incidentally, together with curl) 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 libssh2. Instead, the generic message "Invalid ACK r