* Thu Mar 3 2022 Christine Caulfield <ccaulfie@redhat.com> 2.0.4-4

- Fix negative errno value returned from qb_ipcc_connect().
  Introduced with qb_ipcc_async_connect()
This commit is contained in:
Christine Caulfield 2022-03-03 08:14:39 +00:00
parent 240b5069d7
commit b12db693f1
2 changed files with 29 additions and 1 deletions

22
fix-connect-errno.patch Normal file
View File

@ -0,0 +1,22 @@
commit f5106342d023e7cc238899ec7a567ad1eeb9b404
Author: Christine Caulfield <ccaulfie@redhat.com>
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;
}

View File

@ -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 <ccaulfie@redhat.com> 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 <releng@fedoraproject.org> - 2.0.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild