From: Michael Andres Date: Tue, 2 Jul 2013 13:17:06 +0000 (+0200) Subject: Fix file probing via tftp:// (bnc#803316) X-Git-Tag: upstream/14.27.0~269 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2c558182d4aa8362489ba50e886e344f62cfc57;p=platform%2Fupstream%2Flibzypp.git Fix file probing via tftp:// (bnc#803316) --- diff --git a/zypp/media/MediaCurl.cc b/zypp/media/MediaCurl.cc index 605f4fc..dc9dfba 100644 --- a/zypp/media/MediaCurl.cc +++ b/zypp/media/MediaCurl.cc @@ -1002,6 +1002,7 @@ void MediaCurl::evaluateCurlCode( const Pathname &filename, case CURLE_REMOTE_FILE_NOT_FOUND: #endif case CURLE_FTP_ACCESS_DENIED: + case CURLE_TFTP_NOTFOUND: err = "File not found"; ZYPP_THROW(MediaFileNotFoundException(_url, filename)); break; @@ -1518,7 +1519,7 @@ int MediaCurl::progressCallback( void *clientp, if( pdata) { // work around curl bug that gives us old data - long httpReturnCode = 0; + long httpReturnCode = 0; if (curl_easy_getinfo(pdata->curl, CURLINFO_RESPONSE_CODE, &httpReturnCode) != CURLE_OK || httpReturnCode == 0) return 0;