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.23.0-3: ftp: fix typo in recursive callback detection for seeking
Date: Tue, 03 Nov 2026 12:36:58 GMT	[thread overview]
Message-ID: <179370941805.1.3885277486570178.rpms-curl-6402b496fc86@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/curl
Branch : curl-v8.23.0-3
Commit : 6402b496fc8694007323fb04774d5bdb44e14bbe
Author : Kamil Dudka <kdudka@redhat.com>
Date   : 2018-03-14T14:43:54+01:00
Stats  : +37/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/curl/c/6402b496fc8694007323fb04774d5bdb44e14bbe?branch=curl-v8.23.0-3

Log:
ftp: fix typo in recursive callback detection for seeking

---
diff --git a/0001-curl-7.58.0-ftp-typo-in-recursive-callback-detection.patch b/0001-curl-7.58.0-ftp-typo-in-recursive-callback-detection.patch
new file mode 100644
index 0000000..224630c
--- /dev/null
+++ b/0001-curl-7.58.0-ftp-typo-in-recursive-callback-detection.patch
@@ -0,0 +1,29 @@
+From 1b02cb2b51148915b2ba025bb262ef34f369fa4b Mon Sep 17 00:00:00 2001
+From: dasimx <g9264140@trbvm.com>
+Date: Wed, 14 Mar 2018 11:02:05 +0100
+Subject: [PATCH] FTP: fix typo in recursive callback detection for seeking
+
+Fixes #2380
+
+Upstream-commit: 920f73a6906dce87c6ee87c32b109a287189965d
+Signed-off-by: Kamil Dudka <kdudka@redhat.com>
+---
+ lib/ftp.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/ftp.c b/lib/ftp.c
+index e2cc38b..0cc583b 100644
+--- a/lib/ftp.c
++++ b/lib/ftp.c
+@@ -1621,7 +1621,7 @@ static CURLcode ftp_state_ul_setup(struct connectdata *conn,
+       Curl_set_in_callback(data, true);
+       seekerr = conn->seek_func(conn->seek_client, data->state.resume_from,
+                                 SEEK_SET);
+-      Curl_set_in_callback(data, true);
++      Curl_set_in_callback(data, false);
+     }
+ 
+     if(seekerr != CURL_SEEKFUNC_OK) {
+-- 
+2.14.3
+

diff --git a/curl.spec b/curl.spec
index 0083ed1..d722f07 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.59.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: MIT
 Source: https://curl.haxx.se/download/%{name}-%{version}.tar.xz
 
+# ftp: fix typo in recursive callback detection for seeking
+Patch1:   0001-curl-7.58.0-ftp-typo-in-recursive-callback-detection.patch
+
 # patch making libcurl multilib ready
 Patch101: 0101-curl-7.32.0-multilib.patch
 
@@ -151,6 +154,7 @@ be installed.
 %setup -q
 
 # upstream patches
+%patch1 -p1
 
 # Fedora patches
 %patch101 -p1
@@ -296,6 +300,9 @@ rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
 %{_libdir}/libcurl.so.4.[0-9].[0-9].minimal
 
 %changelog
+* Wed Mar 14 2018 Kamil Dudka <kdudka@redhat.com> - 7.59.0-2
+- ftp: fix typo in recursive callback detection for seeking
+
 * Wed Mar 14 2018 Kamil Dudka <kdudka@redhat.com> - 7.59.0-1
 - new upstream release, which fixes the following vulnerabilities
     CVE-2018-1000120 - FTP path trickery leads to NIL byte out of bounds write

                 reply	other threads:[~2026-11-03 12:36 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=179370941805.1.3885277486570178.rpms-curl-6402b496fc86@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