From 44203caea307c6d601046a8699ae84bcbf1e327e Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Fri, 24 Nov 2023 14:12:53 +0100 Subject: [PATCH] Fix modulemanager issue due to changes from an hour ago. "./unrealircd module upgrade" is called by "make install" and now that we use generic URL framework, the src/url_curl.c did not take into account that at that stage ~/unrealircd/conf/tls/curl-ca-bundle.crt may not exist yet, so fallback to /doc/conf/tls/curl-ca-bundle.crt. The src/url_unreal.c already did that. As did the old modulemanager code that was removed an hour ago. --- src/url_curl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/url_curl.c b/src/url_curl.c index 911bd9569..4c9727fce 100644 --- a/src/url_curl.c +++ b/src/url_curl.c @@ -97,6 +97,8 @@ static void set_curl_tls_options(CURL *curl) #endif snprintf(buf, sizeof(buf), "%s/tls/curl-ca-bundle.crt", CONFDIR); + if (!file_exists(buf)) + snprintf(buf, sizeof(buf), "%s/doc/conf/tls/curl-ca-bundle.crt", BUILDDIR); curl_easy_setopt(curl, CURLOPT_CAINFO, buf); }