]> granicus.if.org Git - curl/commit
libssh2: send the correct CURLE error code on scp file not found
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 26 Oct 2017 09:08:43 +0000 (11:08 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 1 Dec 2017 16:35:15 +0000 (17:35 +0100)
commit75427291e5e06afed7aff0de992cad2cbec5a214
tree9ad7d689224c9320ad3a2ee178e57844d2e3191c
parentc92d2e14cfb0db662f958effd2ac86f995cf1b5a
libssh2: send the correct CURLE error code on scp file not found

That also updates tests to expect the right error code

libssh2 back-end returns CURLE_SSH error if the remote file
is not found. Expect instead CURLE_REMOTE_FILE_NOT_FOUND
which is sent by the libssh backend.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
lib/ssh.c
tests/data/test605