public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kamil Dudka <kdudka@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.21.0-9: ftp: fix for #650255, not yet applied upstream
Date: Mon, 02 Nov 2026 14:27:21 GMT [thread overview]
Message-ID: <179362964135.1.10977961628095842611.rpms-curl-451e44f944c5@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/curl
Branch : curl-v8.21.0-9
Commit : 451e44f944c50a3e636e11e6ab18280c257dedeb
Author : Kamil Dudka <kdudka@redhat.com>
Date : 2010-11-12T17:45:37+01:00
Stats : +60/-41 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/curl/c/451e44f944c50a3e636e11e6ab18280c257dedeb?branch=curl-v8.21.0-9
Log:
ftp: fix for #650255, not yet applied upstream
- do not send QUIT to a dead FTP control connection (#650255)
- pull back glibc's implementation of str[n]casecmp(), #626470 appears
fixed
---
diff --git a/0003-curl-7.21.2-12b2412.patch b/0003-curl-7.21.2-12b2412.patch
new file mode 100644
index 0000000..f5cd244
--- /dev/null
+++ b/0003-curl-7.21.2-12b2412.patch
@@ -0,0 +1,29 @@
+From 1cd485edb996ab3c52e8501d452de00e0be3b092 Mon Sep 17 00:00:00 2001
+From: Kamil Dudka <kdudka@redhat.com>
+Date: Tue, 9 Nov 2010 17:04:04 +0100
+Subject: [PATCH] curl: bz650255
+
+---
+ lib/ftp.c | 6 ++++++
+ 1 files changed, 6 insertions(+), 0 deletions(-)
+
+diff --git a/lib/ftp.c b/lib/ftp.c
+index d79878e..416e5ec 100644
+--- a/lib/ftp.c
++++ b/lib/ftp.c
+@@ -425,6 +425,12 @@ static CURLcode ftp_readresp(curl_socket_t sockfd,
+ if(ftpcode)
+ *ftpcode = code;
+
++ if(421 == code)
++ /* 421 means "Service not available, closing control connection." and FTP
++ * servers use it to signal that idle session timeout has been exceeded.
++ * If we ignored the response, it could end up hanging in some cases. */
++ return CURLE_OPERATION_TIMEDOUT;
++
+ return result;
+ }
+
+--
+1.7.2.3
+
diff --git a/0003-curl-7.21.2-bz650255.patch b/0003-curl-7.21.2-bz650255.patch
deleted file mode 100644
index f5cd244..0000000
--- a/0003-curl-7.21.2-bz650255.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 1cd485edb996ab3c52e8501d452de00e0be3b092 Mon Sep 17 00:00:00 2001
-From: Kamil Dudka <kdudka@redhat.com>
-Date: Tue, 9 Nov 2010 17:04:04 +0100
-Subject: [PATCH] curl: bz650255
-
----
- lib/ftp.c | 6 ++++++
- 1 files changed, 6 insertions(+), 0 deletions(-)
-
-diff --git a/lib/ftp.c b/lib/ftp.c
-index d79878e..416e5ec 100644
---- a/lib/ftp.c
-+++ b/lib/ftp.c
-@@ -425,6 +425,12 @@ static CURLcode ftp_readresp(curl_socket_t sockfd,
- if(ftpcode)
- *ftpcode = code;
-
-+ if(421 == code)
-+ /* 421 means "Service not available, closing control connection." and FTP
-+ * servers use it to signal that idle session timeout has been exceeded.
-+ * If we ignored the response, it could end up hanging in some cases. */
-+ return CURLE_OPERATION_TIMEDOUT;
-+
- return result;
- }
-
---
-1.7.2.3
-
diff --git a/0004-curl-7.21.2-bz650255.patch b/0004-curl-7.21.2-bz650255.patch
new file mode 100644
index 0000000..2609a26
--- /dev/null
+++ b/0004-curl-7.21.2-bz650255.patch
@@ -0,0 +1,19 @@
+ lib/url.c | 5 +++++
+ 1 files changed, 5 insertions(+), 0 deletions(-)
+
+diff --git a/lib/url.c b/lib/url.c
+index 1b65a92..4e2bce6 100644
+--- a/lib/url.c
++++ b/lib/url.c
+@@ -2886,6 +2886,11 @@ ConnectionExists(struct SessionHandle *data,
+ check->data = data;
+ infof(data, "Connection #%ld seems to be dead!\n", i);
+
++ if(check->protocol & PROT_FTP)
++ /* FTP: avoid sending QUIT and waiting for response on a dead
++ * connection */
++ check->proto.ftpc.ctl_valid = FALSE;
++
+ Curl_disconnect(check); /* disconnect resources */
+ data->state.connc->connects[i]=NULL; /* nothing here */
+
diff --git a/curl.spec b/curl.spec
index 92f07c3..d8e64c1 100644
--- a/curl.spec
+++ b/curl.spec
@@ -1,7 +1,7 @@
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
Name: curl
Version: 7.21.2
-Release: 4%{?dist}
+Release: 5%{?dist}
License: MIT
Group: Applications/Internet
Source: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
@@ -16,7 +16,10 @@ Patch2: 0002-curl-7.21.2-c6b97a8.patch
# return more appropriate error code in case FTP server session idle
# timeout has exceeded (#650255)
-Patch3: 0003-curl-7.21.2-bz650255.patch
+Patch3: 0003-curl-7.21.2-12b2412.patch
+
+# do not send QUIT to a dead FTP control connection (#650255)
+Patch4: 0004-curl-7.21.2-bz650255.patch
# patch making libcurl multilib ready
Patch101: 0101-curl-7.21.1-multilib.patch
@@ -118,6 +121,9 @@ done
%patch2 -p1
%patch3 -p1
+# upstream patches (not yet applied)
+%patch4 -p1
+
# Fedora patches
%patch101 -p1
%patch102 -p1
@@ -146,16 +152,6 @@ sed -i s/899\\\([0-9]\\\)/%{?__isa_bits}9\\1/ tests/data/test*
# --enable-debug
# use ^^^ to turn off optimizations, etc.
-# either glibc's implementation of strcasecmp() or its interpretation
-# by valgrind seems to be broken on x86_64 (#626470), the same problem
-# appeared with strncasecmp() a while later (#631449)
-%ifarch x86_64
-sed -i \
- -e 's/HAVE_STRCASECMP/HAVE_BROKEN_STRCASECMP/' \
- -e 's/HAVE_STRNCASECMP/HAVE_BROKEN_STRNCASECMP/' \
- lib/curl_config.h
-%endif
-
# Remove bogus rpath
sed -i \
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
@@ -238,6 +234,10 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/aclocal/libcurl.m4
%changelog
+* Fri Nov 12 2010 Kamil Dudka <kdudka@redhat.com> 7.21.2-5
+- do not send QUIT to a dead FTP control connection (#650255)
+- pull back glibc's implementation of str[n]casecmp(), #626470 appears fixed
+
* Tue Nov 09 2010 Kamil Dudka <kdudka@redhat.com> 7.21.2-4
- prevent FTP client from hanging on unrecognized ABOR response (#649347)
- return more appropriate error code in case FTP server session idle
reply other threads:[~2026-11-02 14:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179362964135.1.10977961628095842611.rpms-curl-451e44f944c5@fedoraproject.org \
--to=kdudka@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox