cURL

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1361 Error code 79

From: Daniel Stenberg <bagder_at_users.sf.net>
Date: Thu, 17 Apr 2014 17:34:54 +0000

Error code 79 is documented. It is not only for SCP missing files. Feel free to help us improve what we return for file not found in the SCP case. I'm closing this report.

---
** [bugs:#1361] Error code 79**
**Status:** open
**Labels:** SCP/SFTP 
**Created:** Wed Apr 16, 2014 08:31 PM UTC by Minh Nguyen
**Last Updated:** Wed Apr 16, 2014 10:06 PM UTC
**Owner:** Daniel Stenberg
(I submitted the following to the mailing list but did not get any response, hence this bug).

We currently used libcurl version 7.19.7 with libssh2 version 1.2.2.
Given the typical following code fragment:

-----------------
(…)
CURL* curl;
char errorBuf[1024];
int result;

if (curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK)
   return 0;

curl = curl_easy_init();

(…)
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errorBuf);
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
(…)

result = curl_easy_perform (curl);
printf(“curl_easy_perform() returned result=%d, msg=%s\n”, result, errorBuf);
---------------

When we tried to download a non-existing file (“/tmp/non-exist.txt”) via scp, we got the correct info for the printf statement:

            “curl_easy_perform() returned result=79, msg=scp: /tmp/non-exist.txt: No such file or directory”


After we upgrade to the latest version of libssh2 (1.4.3), now we got a different error message from libcurl:

             “curl_easy_perform() returned result=79, msg=Failed to recv file”

We upgraded to the latest version of libcurl 7.36.0, but we still got the same error message “Failed to recv file” (instead of “No such file or directory”).

Is it an expected change in the error message string corresponding to error code 79?
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-04-17

These mail archives are generated by hypermail.

donate! Page updated March 21, 2014.
web site info

File upload with ASP.NET