From cc16114bb2574b7c7526f6576c3732e411f5d7e2 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 19 2015 15:59:06 +0000 Subject: import libqb-0.17.1-2.el7.1 --- diff --git a/SOURCES/bz1277538-increase-socket-field-len.patch b/SOURCES/bz1277538-increase-socket-field-len.patch new file mode 100644 index 0000000..87a03ae --- /dev/null +++ b/SOURCES/bz1277538-increase-socket-field-len.patch @@ -0,0 +1,22 @@ +commit 0766a3ca5473a9e126e91022075b4b3798b8d5bc +Author: Arkadiusz Bubala +Date: Thu Aug 6 08:56:59 2015 +0200 + + Increase the length of description field. + + Make description field larger to satisfy all possible pids and file + descriptor values. + +diff --git a/lib/ipc_int.h b/lib/ipc_int.h +index a428721..500315e 100644 +--- a/lib/ipc_int.h ++++ b/lib/ipc_int.h +@@ -159,7 +159,7 @@ enum qb_ipcs_connection_state { + QB_IPCS_CONNECTION_SHUTTING_DOWN, + }; + +-#define CONNECTION_DESCRIPTION (16) ++#define CONNECTION_DESCRIPTION (34) /* INT_MAX length + 3 */ + + struct qb_ipcs_connection_auth { + uid_t uid; diff --git a/SPECS/libqb.spec b/SPECS/libqb.spec index dc46b25..03913b4 100644 --- a/SPECS/libqb.spec +++ b/SPECS/libqb.spec @@ -1,6 +1,6 @@ Name: libqb Version: 0.17.1 -Release: 2%{?dist} +Release: 2%{?dist}.1 Summary: An IPC library for high performance servers Group: System Environment/Libraries @@ -13,6 +13,7 @@ Patch2: bz1211375-ipc-test-update1.patch Patch3: bz1211375-ipc-test-update2.patch Patch4: bz1211375-ipc-test-update3.patch Patch5: bz1211375-libqb-poll-fix.patch +Patch6: bz1277538-increase-socket-field-len.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -31,6 +32,7 @@ Initially these are IPC and poll. %patch3 -p1 %patch4 -p1 %patch5 -p1 +%patch6 -p1 # work-around for broken epoll in rawhide/f17 %build @@ -80,6 +82,11 @@ developing applications that use %{name}. %changelog +* Tue Nov 3 2015 Christine Caulfield - 0.17.1-2.1 + Increase size of the buffer where we make the socket name to allow for + longer PIDs + Resolves: rhbz#1277538 + * Thu Apr 16 2015 David Vossel - 0.17.1-2 Fixes assert encountered in libqb's mainloop implementation.