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: restore the functionality of 'curl -u :'
Date: Tue, 03 Nov 2026 12:35:12 GMT [thread overview]
Message-ID: <179370931245.1.13537099201822560406.rpms-curl-ad1769748654@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/curl
Branch : curl-v8.23.0-3
Commit : ad176974865472553e867169d534ba3bc83348ec
Author : Kamil Dudka <kdudka@redhat.com>
Date : 2013-07-01T11:42:49+02:00
Stats : +45/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/curl/c/ad176974865472553e867169d534ba3bc83348ec?branch=curl-v8.23.0-3
Log:
restore the functionality of 'curl -u :'
---
diff --git a/0002-curl-7.31.0-abca89aa.patch b/0002-curl-7.31.0-abca89aa.patch
new file mode 100644
index 0000000..ab4c1a7
--- /dev/null
+++ b/0002-curl-7.31.0-abca89aa.patch
@@ -0,0 +1,37 @@
+From 8d1d6c18015de5db2b2a1f499b6d341f86505810 Mon Sep 17 00:00:00 2001
+From: Kamil Dudka <kdudka@redhat.com>
+Date: Sun, 30 Jun 2013 19:51:16 +0200
+Subject: [PATCH] url: restore the functionality of 'curl -u :'
+
+This commit fixes a regression introduced in
+fddb7b44a79d78e05043e1c97e069308b6b85f79.
+
+Reported by: Markus Moeller
+Bug: http://curl.haxx.se/mail/archive-2013-06/0052.html
+
+[upstream commit abca89aaa0fb208cfaf4ead6692014c4e553388a]
+---
+ lib/url.c | 7 +++++++
+ 1 files changed, 7 insertions(+), 0 deletions(-)
+
+diff --git a/lib/url.c b/lib/url.c
+index 7ba4969..4231d37 100644
+--- a/lib/url.c
++++ b/lib/url.c
+@@ -317,6 +317,13 @@ static CURLcode setstropt_userpwd(char *option, char **userp, char **passwdp,
+ if(!result) {
+ /* Store the username part of option if required */
+ if(userp) {
++ if(!user && option && option[0] == ':') {
++ /* Allocate an empty string instead of returning NULL as user name */
++ user = strdup("");
++ if(!user)
++ result = CURLE_OUT_OF_MEMORY;
++ }
++
+ Curl_safefree(*userp);
+ *userp = user;
+ }
+--
+1.7.1
+
diff --git a/curl.spec b/curl.spec
index c400867..2eb1009 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.31.0
-Release: 2%{?dist}
+Release: 3%{?dist}
License: MIT
Group: Applications/Internet
Source: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
@@ -10,6 +10,9 @@ Source2: curlbuild.h
# test1230: avoid using hard-wired port number
Patch1: 0001-curl-7.31.0-02964ed6.patch
+# restore the functionality of 'curl -u :'
+Patch2: 0002-curl-7.31.0-abca89aa.patch
+
# patch making libcurl multilib ready
Patch101: 0101-curl-7.31.0-multilib.patch
@@ -108,6 +111,7 @@ documentation of the library, too.
# upstream patches
%patch1 -p1
+%patch2 -p1
# Fedora patches
%patch101 -p1
@@ -229,6 +233,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/aclocal/libcurl.m4
%changelog
+* Tue Jul 01 2013 Kamil Dudka <kdudka@redhat.com> 7.31.0-3
+- restore the functionality of 'curl -u :'
+
* Wed Jun 26 2013 Kamil Dudka <kdudka@redhat.com> 7.31.0-2
- build the curl tool with metalink support
reply other threads:[~2026-11-03 12:35 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=179370931245.1.13537099201822560406.rpms-curl-ad1769748654@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