From: Loïc Yhuel Date: Wed, 11 Oct 2023 11:09:23 +0000 (+0200) Subject: tool: fix --capath when proxy support is disabled X-Git-Tag: curl-8_5_0~213 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=014ce7c0d0dfa43cd261983926a04a07fcb70ac8;p=thirdparty%2Fcurl.git tool: fix --capath when proxy support is disabled After 95e8515ca0, --capath always sets CURLOPT_PROXY_CAPATH, which fails with CURLE_UNKNOWN_OPTION when proxy support is disabled. Closes #12089 --- diff --git a/src/tool_operate.c b/src/tool_operate.c index b60f57e0d9..697b64e38a 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1776,7 +1776,8 @@ static CURLcode single_transfer(struct GlobalConfig *global, (config->proxy_capath ? config->proxy_capath : config->capath)); - if(result == CURLE_NOT_BUILT_IN) { + if((result == CURLE_NOT_BUILT_IN) || + (result == CURLE_UNKNOWN_OPTION)) { if(config->proxy_capath) { warnf(global, "ignoring --proxy-capath, not supported by libcurl");