Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package glusterfs for openSUSE:Factory checked in at 2023-06-03 00:05:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/glusterfs (Old) and /work/SRC/openSUSE:Factory/.glusterfs.new.15902 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "glusterfs" Sat Jun 3 00:05:21 2023 rev:35 rq:1089889 version:11.0 Changes: -------- --- /work/SRC/openSUSE:Factory/glusterfs/glusterfs.changes 2023-02-27 12:54:58.059274980 +0100 +++ /work/SRC/openSUSE:Factory/.glusterfs.new.15902/glusterfs.changes 2023-06-03 00:05:22.357333134 +0200 @@ -1,0 +2,6 @@ +Tue May 23 23:25:48 UTC 2023 - Jan Engelhardt <[email protected]> + +- Add 0001-socket-only-issue-IPPROTO_IPV6-setsockopt-calls-on-A.patch + [boo#1210894] + +------------------------------------------------------------------- New: ---- 0001-socket-only-issue-IPPROTO_IPV6-setsockopt-calls-on-A.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ glusterfs.spec ++++++ --- /var/tmp/diff_new_pack.HYxEvl/_old 2023-06-03 00:05:23.137337739 +0200 +++ /var/tmp/diff_new_pack.HYxEvl/_new 2023-06-03 00:05:23.137337739 +0200 @@ -27,6 +27,7 @@ #Git-Clone: https://github.com/gluster/glusterfs #Git-Clone: https://github.com/fvzwieten/lsgvt Source: https://download.gluster.org/pub/gluster/glusterfs/11/%version/glusterfs-%version.tar.gz +Patch1: 0001-socket-only-issue-IPPROTO_IPV6-setsockopt-calls-on-A.patch BuildRequires: acl-devel BuildRequires: autoconf BuildRequires: automake ++++++ 0001-socket-only-issue-IPPROTO_IPV6-setsockopt-calls-on-A.patch ++++++ >From b46885bba7ce6a41aba7f4b2d4482cf4d6efe792 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt <[email protected]> Date: Thu, 4 May 2023 15:35:03 +0200 Subject: [PATCH] socket: only issue IPPROTO_IPV6 setsockopt calls on AF_INET6 sockets Related-to: #2648 --- rpc/rpc-transport/socket/src/socket.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c index 97c9544d34..5b6870e6c4 100644 --- a/rpc/rpc-transport/socket/src/socket.c +++ b/rpc/rpc-transport/socket/src/socket.c @@ -3281,15 +3281,17 @@ socket_connect(rpc_transport_t *this, int port) * net.ipv6.bindv6only to 1 so that gluster services are * available over IPv4 & IPv6. */ -#ifdef IPV6_DEFAULT int disable_v6only = 0; - if (setsockopt(priv->sock, IPPROTO_IPV6, IPV6_V6ONLY, + int fdsock_family = 0; + socklen_t fdsock_size = sizeof(fdsock_family); + if (getsockopt(priv->sock, SOL_SOCKET, SO_DOMAIN, &fdsock_family, &fdsock_size) == 0 && + fdsock_family == AF_INET6 && + setsockopt(priv->sock, IPPROTO_IPV6, IPV6_V6ONLY, (void *)&disable_v6only, sizeof(disable_v6only)) < 0) { gf_log(this->name, GF_LOG_WARNING, "Error disabling sockopt IPV6_V6ONLY: \"%s\"", strerror(errno)); } -#endif if (sa_family != AF_UNIX) { if (priv->nodelay) { -- 2.40.1
