apply patch resolving a sigpipe issue reported with transmission [release 8.9.1-2mamba;Mon Aug 05 2024]

This commit is contained in:
Silvan Calarco 2024-08-05 23:23:00 +02:00
parent ac24a14eaf
commit 0279a3e734
2 changed files with 32 additions and 1 deletions

26
curl-8.9.1-sigpipe.patch Normal file
View File

@ -0,0 +1,26 @@
https://github.com/curl/curl/commit/3eec5afbd0b6377eca893c392569b2faf094d970
From: Daniel Stenberg <daniel@haxx.se>
Date: Mon, 5 Aug 2024 00:17:17 +0200
Subject: [PATCH] sigpipe: init the struct so that first apply ignores
Initializes 'no_signal' to TRUE, so that a call to sigpipe_apply() after
init ignores the signal (unless CURLOPT_NOSIGNAL) is set.
I have read the existing code multiple times now and I think it gets the
initial state reversed this missing to ignore.
Regression from 17e6f06ea37136c36d27
Reported-by: Rasmus Thomsen
Fixes #14344
Closes #14390
--- a/lib/sigpipe.h
+++ b/lib/sigpipe.h
@@ -39,6 +39,7 @@ struct sigpipe_ignore {
static void sigpipe_init(struct sigpipe_ignore *ig)
{
memset(ig, 0, sizeof(*ig));
+ ig->no_signal = TRUE;
}
/*

View File

@ -2,7 +2,7 @@
Name: curl
Version: 8.9.1
Release: 1mamba
Release: 2mamba
Summary: A tool for transfering data with URL syntax that supports many protocols
Group: Applications/Networking
Vendor: openmamba
@ -10,6 +10,7 @@ Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://curl.se/
Source: http://curl.haxx.se/download/curl-%{version}.tar.bz2
Patch0: curl-8.9.1-sigpipe.patch
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
@ -91,6 +92,7 @@ This package contains static libraries and header files needed for development.
%setup -q
#-D -T
#:<< _EOF
%patch 0 -p1 -b .sigpipe
mkdir gnutls
cd gnutls
@ -216,6 +218,9 @@ cd gnutls/lib/
%doc CHANGES README RELEASE-NOTES
%changelog
* Mon Aug 05 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 8.9.1-2mamba
- apply patch resolving a sigpipe issue reported with transmission
* Wed Jul 31 2024 Automatic Build System <autodist@openmamba.org> 8.9.1-1mamba
- automatic version update by autodist