[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 09/125: libssh2: return CURLE_UPLOAD_FAILED on fail
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 09/125: libssh2: return CURLE_UPLOAD_FAILED on failure to upload |
Date: |
Sun, 21 Jan 2018 23:41:04 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 38aef6dc454d7edc335c44edfec72c7eb151b029
Author: Nikos Mavrogiannopoulos <address@hidden>
AuthorDate: Sun Nov 5 15:06:30 2017 +0100
libssh2: return CURLE_UPLOAD_FAILED on failure to upload
This brings its in sync with the error code returned by the
libssh backend.
Signed-off-by: Nikos Mavrogiannopoulos <address@hidden>
---
lib/ssh.c | 4 ++++
tests/data/test623 | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/ssh.c b/lib/ssh.c
index e0e88632d..ef169ade7 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -2368,6 +2368,10 @@ static CURLcode ssh_statemach_act(struct connectdata
*conn, bool *block)
failf(conn->data, "%s", err_msg);
state(conn, SSH_SCP_CHANNEL_FREE);
sshc->actualcode = libssh2_session_error_to_CURLE(ssh_err);
+ /* Map generic errors to upload failed */
+ if(sshc->actualcode == CURLE_SSH ||
+ sshc->actualcode == CURLE_REMOTE_FILE_NOT_FOUND)
+ sshc->actualcode = CURLE_UPLOAD_FAILED;
break;
}
diff --git a/tests/data/test623 b/tests/data/test623
index 1a639d69f..f4b32dcaf 100644
--- a/tests/data/test623
+++ b/tests/data/test623
@@ -37,7 +37,7 @@ for ssh upload test
disable
</valgrind>
<errorcode>
-79
+25
</errorcode>
</verify>
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] branch master updated (851483824 -> cc5f34a99), gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 04/125: lib: don't export all symbols, just everything curl_*, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 10/125: .travis.yml: added build --with-libssh, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 11/125: symbols-in-versions: added new symbols with 7.56.3 version, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 02/125: examples/xmlstream.c: don't switch off CURL_GLOBAL_SSL, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 01/125: travis: add boringssl build, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 09/125: libssh2: return CURLE_UPLOAD_FAILED on failure to upload,
gnunet <=
- [GNUnet-SVN] [gnurl] 05/125: curlver: towards 7.57.1, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 06/125: RELEASE-NOTES: synced with af8cc7a69, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 13/125: lib582: do not verify host for SFTP, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 16/125: libssh: fix minor static code analyzer nits, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 18/125: libssh: corrected use of sftp_statvfs() in SSH_SFTP_QUOTE_STATVFS, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 14/125: travis: use pip2 instead of pip, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 15/125: openssl: pkcs12 is supported by boringssl, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 19/125: RESOURCES: update spec names, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 21/125: ssh-libssh.c: please checksrc, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 22/125: libssh2: remove dead code from SSH_SFTP_QUOTE, gnunet, 2018/01/21