public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/curl] curl-v8.21.0-9: fix --cert parameter
@ 2026-11-02 14:32 Jan Macku
0 siblings, 0 replies; only message in thread
From: Jan Macku @ 2026-11-02 14:32 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/curl
Branch : curl-v8.21.0-9
Commit : 5e5bbeb413edc79263a785e0ba467df9cb9c093c
Author : Jan Macku <jamacku@redhat.com>
Date : 2025-03-13T09:30:38+01:00
Stats : +67/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/curl/c/5e5bbeb413edc79263a785e0ba467df9cb9c093c?branch=curl-v8.21.0-9
Log:
fix --cert parameter
Resolves: #2351531
---
diff --git a/0002-curl-8.13.0~rc1-fix--cert-parameter-clearing.patch b/0002-curl-8.13.0~rc1-fix--cert-parameter-clearing.patch
new file mode 100644
index 0000000..e08a349
--- /dev/null
+++ b/0002-curl-8.13.0~rc1-fix--cert-parameter-clearing.patch
@@ -0,0 +1,60 @@
+From 886569e2db200c31073895a2626d20e0712e5207 Mon Sep 17 00:00:00 2001
+From: Stefan Eissing <stefan@eissing.org>
+Date: Wed, 12 Mar 2025 14:42:19 +0100
+Subject: [PATCH] curl: fix --cert parameter clearing
+
+Blank the argument *after* it has been copied.
+
+Reported-by: Jan Macku
+Fixes #16686
+Closes #16688
+---
+ src/tool_getparam.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/tool_getparam.c b/src/tool_getparam.c
+index 9f227abbfdb5..e5272de74feb 100644
+--- a/src/tool_getparam.c
++++ b/src/tool_getparam.c
+@@ -2481,8 +2481,8 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
+ }
+ break;
+ case C_CERT: /* --cert */
+- cleanarg(clearthis);
+ GetFileAndPassword(nextarg, &config->cert, &config->key_passwd);
++ cleanarg(clearthis);
+ break;
+ case C_CACERT: /* --cacert */
+ err = getstr(&config->cacert, nextarg, DENY_BLANK);
+@@ -2601,18 +2601,18 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
+ config->tcp_fastopen = TRUE;
+ break;
+ case C_PROXY_TLSUSER: /* --proxy-tlsuser */
+- cleanarg(clearthis);
+ if(!feature_tls_srp)
+ err = PARAM_LIBCURL_DOESNT_SUPPORT;
+ else
+ err = getstr(&config->proxy_tls_username, nextarg, ALLOW_BLANK);
++ cleanarg(clearthis);
+ break;
+ case C_PROXY_TLSPASSWORD: /* --proxy-tlspassword */
+- cleanarg(clearthis);
+ if(!feature_tls_srp)
+ err = PARAM_LIBCURL_DOESNT_SUPPORT;
+ else
+ err = getstr(&config->proxy_tls_password, nextarg, DENY_BLANK);
++ cleanarg(clearthis);
+ break;
+ case C_PROXY_TLSAUTHTYPE: /* --proxy-tlsauthtype */
+ if(!feature_tls_srp)
+@@ -2624,9 +2624,9 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
+ }
+ break;
+ case C_PROXY_CERT: /* --proxy-cert */
+- cleanarg(clearthis);
+ GetFileAndPassword(nextarg, &config->proxy_cert,
+ &config->proxy_key_passwd);
++ cleanarg(clearthis);
+ break;
+ case C_PROXY_CERT_TYPE: /* --proxy-cert-type */
+ err = getstr(&config->proxy_cert_type, nextarg, DENY_BLANK);
diff --git a/curl.spec b/curl.spec
index 80a56c3..c7f41cc 100644
--- a/curl.spec
+++ b/curl.spec
@@ -7,7 +7,7 @@
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
Name: curl
Version: 8.13.0~rc1
-Release: 1%{?dist}
+Release: 2%{?dist}
License: curl
Source0: https://curl.se/download/%{name}-%{version_no_tilde}.tar.xz
Source1: https://curl.se/download/%{name}-%{version_no_tilde}.tar.xz.asc
@@ -19,6 +19,9 @@ Source2: mykey.asc
# Test 1022 add support for rc releases
Patch001: 0001-curl-8.13.0~rc1-test1022-add-support-for-rc-releases.patch
+# Fix --cert parameter (#2351531)
+Patch002: 0002-curl-8.13.0~rc1-fix--cert-parameter-clearing.patch
+
# patch making libcurl multilib ready
# Patch101: 0101-curl-7.32.0-multilib.patch
@@ -410,6 +413,9 @@ rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
%{_libdir}/libcurl.so.4.[0-9].[0-9].minimal
%changelog
+* Thu Mar 13 2025 Jan Macku <jamacku@redhat.com> - 8.13.0~rc1-2
+- fix --cert parameter (#2351531)
+
* Mon Mar 10 2025 Jan Macku <jamacku@redhat.com> - 8.13.0~rc1-1
- new upstream release candidate
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-02 14:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-02 14:32 [rpms/curl] curl-v8.21.0-9: fix --cert parameter Jan Macku
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox