cURL / Mailing Lists / curl-users / Single Mail


Error code 79

From: Nguyen, Minh <>
Date: Tue, 8 Apr 2014 18:24:27 +0000


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 from libcurl wrt 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 intended change in libcurl?

M. Nguyen

List admin:
Received on 2014-04-08