diff --git a/fix-connect-errno.patch b/fix-connect-errno.patch new file mode 100644 index 0000000..1de4962 --- /dev/null +++ b/fix-connect-errno.patch @@ -0,0 +1,22 @@ +commit f5106342d023e7cc238899ec7a567ad1eeb9b404 +Author: Christine Caulfield +Date: Wed Mar 2 15:23:39 2022 +0000 + + ipcc: Fix errno returned from qb_ipcc_connect + + The errno value from qb_ipcc_connect was incorrectly negated + when I introduced qb_ipcc_async_connect() + +diff --git a/lib/ipcc.c b/lib/ipcc.c +index c744ea1..4f35ea2 100644 +--- a/lib/ipcc.c ++++ b/lib/ipcc.c +@@ -152,7 +152,7 @@ disconnect_and_cleanup: + free(c->receive_buf); + free(c); + errno = -res; +- return -res; ++ return res; + + } + diff --git a/libqb.spec b/libqb.spec index 2af2e59..7ea5c89 100644 --- a/libqb.spec +++ b/libqb.spec @@ -2,7 +2,7 @@ Name: libqb Version: 2.0.4 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Library providing high performance logging, tracing, ipc, and poll License: LGPLv2+ @@ -11,6 +11,7 @@ Source0: https://github.com/ClusterLabs/libqb/releases/download/v%{versio Patch0: add-async-connect.patch Patch1: bump-version-for-async.patch +Patch2: fix-connect-errno.patch BuildRequires: autoconf automake libtool BuildRequires: check-devel @@ -34,6 +35,7 @@ and polling. %setup -q -n %{name}-%{version} %patch0 -p1 -b .add-async-connect %patch1 -p1 -b .bump-version-for-async +%patch2 -p1 -b .fix-connect-errno %build ./autogen.sh @@ -89,6 +91,10 @@ This package contains a program to create nicely-formatted man pages from Doxyge %changelog +* Thu Mar 3 2022 Christine Caulfield 2.0.4-4 +- Fix negative errno value returned from qb_ipcc_connect(). + Introduced with qb_ipcc_async_connect() + * Thu Jan 20 2022 Fedora Release Engineering - 2.0.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild