cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl crahes when an SFTP server's home directory is non-exist

From: B _ <silverhjc_at_hotmail.com>
Date: Wed, 15 Jun 2016 03:20:28 +0000

On Tue, 14 Jun 2016, Daniel Stenberg via curl-library wrote:

> Yes, it just sends a query to the server and the server may just return an
> empty or malformatted string.
>
> The question is then rather why it would return a positive number if there was
> ho home dir so no data was copied?

> It makes me suspect this was a very old libssh2 version? (This could be the
> fault fixed in commit f9b1b950 in libssh2, part of the 1.2.8 release.)

It just returns 0.
The libssh2 is from CentOS 7, shouldn't be too old.
And I tried with latest source compiled libssh2, the result is same.

Huo Jiachuan

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-06-15