Thu Mar 3 2022 Christine Caulfield <ccaulfie@redhat.com> 2.0.3-8

Fix negative errno in qb_ipcc_connect (introduced in 2.0.3-4)
 Resolves: rhbz#2057527
This commit is contained in:
Christine Caulfield 2022-03-03 07:45:37 +00:00
parent 840cb18c61
commit aa72c395a2
2 changed files with 29 additions and 1 deletions

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

@ -3,7 +3,7 @@
Name: libqb
Version: 2.0.3
Release: 7%{?dist}
Release: 8%{?dist}
Summary: Library providing high performance logging, tracing, ipc, and poll
License: LGPLv2+
@ -12,6 +12,7 @@ Source0: https://github.com/ClusterLabs/libqb/releases/download/v%{versio
Patch0: bz2031865-add-async-connect.patch
Patch1: bz2031865-bump-version-for-async.patch
Patch2: bz2057527-fix-connect-errno.patch
BuildRequires: autoconf automake libtool
BuildRequires: check-devel
@ -35,6 +36,7 @@ and polling.
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .bz2031865-add-async-connect
%patch1 -p1 -b .bz2031865-bump-version-for-async
%patch2 -p1 -b .bz2057527-fix-connect-errno
%build
./autogen.sh
@ -107,6 +109,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.3-8
- Fix negative errno in qb_ipcc_connect (introduced in 2.0.3-4)
Resolves: rhbz#2057527
* Wed Jan 19 2022 Christine Caulfield <ccaulfie@redhat.com> 2.0.3-7
- Bump soname for async-connect API addition
Resolves: rhbz#bz2031865