public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/curl] curl-v8.21.0-9: Resolves: #1659329 - revert an upstream commit that broke `fedpkg new-sources`
@ 2026-11-02 14:30 Kamil Dudka
  0 siblings, 0 replies; only message in thread
From: Kamil Dudka @ 2026-11-02 14:30 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/curl
Branch : curl-v8.21.0-9
Commit : c30a9c7fdb343528c29e503b626dc566fa4deb9e
Author : Kamil Dudka <kdudka@redhat.com>
Date   : 2018-12-14T11:21:54+01:00
Stats  : +80/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/curl/c/c30a9c7fdb343528c29e503b626dc566fa4deb9e?branch=curl-v8.21.0-9

Log:
Resolves: #1659329 - revert an upstream commit that broke `fedpkg new-sources`

---
diff --git a/0001-curl-7.62.0-http-post-negotiate.patch b/0001-curl-7.62.0-http-post-negotiate.patch
new file mode 100644
index 0000000..a391183
--- /dev/null
+++ b/0001-curl-7.62.0-http-post-negotiate.patch
@@ -0,0 +1,72 @@
+From be7395e31ae884cfaf87056f400130e3321767b3 Mon Sep 17 00:00:00 2001
+From: Elia Tufarolo <elia.tufarolo@hcl.com>
+Date: Tue, 13 Nov 2018 18:30:56 +0100
+Subject: [PATCH] http_negotiate: do not close connection until negotiation is
+ completed
+
+Fix HTTP POST using CURLAUTH_NEGOTIATE.
+
+Closes #3275
+
+Upstream-commit: 07ebaf837843124ee670e5b8c218b80b92e06e47
+Signed-off-by: Kamil Dudka <kdudka@redhat.com>
+---
+ lib/http.c           | 1 -
+ lib/http_negotiate.c | 8 ++++++++
+ 2 files changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/lib/http.c b/lib/http.c
+index 46ac15a6e..afc919b09 100644
+--- a/lib/http.c
++++ b/lib/http.c
+@@ -610,7 +610,6 @@ output_auth_headers(struct connectdata *conn,
+     result = Curl_output_negotiate(conn, proxy);
+     if(result)
+       return result;
+-    authstatus->done = TRUE;
+     negdata->state = GSS_AUTHSENT;
+   }
+   else
+diff --git a/lib/http_negotiate.c b/lib/http_negotiate.c
+index ddcd65b3b..444265d11 100644
+--- a/lib/http_negotiate.c
++++ b/lib/http_negotiate.c
+@@ -49,6 +49,7 @@ CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy,
+ 
+   /* Point to the correct struct with this */
+   struct negotiatedata *neg_ctx;
++  struct auth *authp;
+ 
+   if(proxy) {
+     userp = conn->http_proxy.user;
+@@ -57,6 +58,7 @@ CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy,
+               data->set.str[STRING_PROXY_SERVICE_NAME] : "HTTP";
+     host = conn->http_proxy.host.name;
+     neg_ctx = &data->state.proxyneg;
++    authp = &conn->data->state.authproxy;
+   }
+   else {
+     userp = conn->user;
+@@ -65,6 +67,7 @@ CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy,
+               data->set.str[STRING_SERVICE_NAME] : "HTTP";
+     host = conn->host.name;
+     neg_ctx = &data->state.negotiate;
++    authp = &conn->data->state.authhost;
+   }
+ 
+   /* Not set means empty */
+@@ -95,6 +98,11 @@ CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy,
+ 
+   if(result)
+     Curl_auth_spnego_cleanup(neg_ctx);
++  else
++    /* If the status is different than 0 and we encountered no errors
++    it means we have to continue. 0 is the OK value for both GSSAPI
++    (GSS_S_COMPLETE) and SSPI (SEC_E_OK) */
++    authp->done = !neg_ctx->status;
+ 
+   return result;
+ }
+-- 
+2.20.0
+

diff --git a/curl.spec b/curl.spec
index e77d447..3237389 100644
--- a/curl.spec
+++ b/curl.spec
@@ -1,10 +1,13 @@
 Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
 Name: curl
 Version: 7.63.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: MIT
 Source: https://curl.haxx.se/download/%{name}-%{version}.tar.xz
 
+# revert an upstream commit that broke `fedpkg new-sources` (#1659329)
+Patch1:   0001-curl-7.62.0-http-post-negotiate.patch
+
 # patch making libcurl multilib ready
 Patch101: 0101-curl-7.32.0-multilib.patch
 
@@ -164,6 +167,7 @@ be installed.
 
 %prep
 %setup -q
+%patch1 -p1 -R
 
 # upstream patches
 
@@ -333,6 +337,9 @@ rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
 %{_libdir}/libcurl.so.4.[0-9].[0-9].minimal
 
 %changelog
+* Fri Dec 14 2018 Kamil Dudka <kdudka@redhat.com> - 7.63.0-2
+- revert an upstream commit that broke `fedpkg new-sources` (#1659329)
+
 * Wed Dec 12 2018 Kamil Dudka <kdudka@redhat.com> - 7.63.0-1
 - new upstream release
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-02 14:30 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:30 [rpms/curl] curl-v8.21.0-9: Resolves: #1659329 - revert an upstream commit that broke `fedpkg new-sources` Kamil Dudka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox