I did this
Build libcurl with --without-ca-bundle (or -DCURL_CA_PATH:STRING=none with CMake), such that no CURL_CA_PATH is defined here.
Then explicitly set the CURLOPT_CAPATH option in an application linked to libcurl:
curl_easy_setopt(curl, CURLOPT_CAPATH, "/some/path");
I expected the following
CApath is /some/path. Instead the CURLOPT_CAPATH setting is ignored.
curl/libcurl version
curl 8.17.0
The problem bisects to commit eefd03c, #18703.
operating system
Any using OpenSSL or similar.