From bb3398683726c3550543010dd0e172ddc318a16a Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: May 22 2007 15:47:47 +0000 Subject: Fixed an ipv6 related segfault on startup (bz 240873) --- diff --git a/rpcbind-0.1.4-iff_up.patch b/rpcbind-0.1.4-iff_up.patch new file mode 100644 index 0000000..800e910 --- /dev/null +++ b/rpcbind-0.1.4-iff_up.patch @@ -0,0 +1,12 @@ +--- rpcbind-0.1.4/src/util.c.iff_up 2007-05-22 11:14:39.000000000 -0400 ++++ rpcbind-0.1.4/src/util.c 2007-05-22 11:14:56.000000000 -0400 +@@ -359,7 +359,8 @@ network_init() + * interface, join the RPC multicast group on that interface. + */ + for (ifap = ifp; ifap != NULL; ifap = ifap->ifa_next) { +- if (ifap->ifa_addr->sa_family != AF_INET6 || ++ if (!ifap->ifa_addr || ++ ifap->ifa_addr->sa_family != AF_INET6 || + !(ifap->ifa_flags & IFF_MULTICAST)) + continue; + ifindex = if_nametoindex(ifap->ifa_name); diff --git a/rpcbind.spec b/rpcbind.spec index 8290129..8325fae 100644 --- a/rpcbind.spec +++ b/rpcbind.spec @@ -2,7 +2,7 @@ Name: rpcbind Version: 0.1.4 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Universal Addresses to RPC Program Number Napper Group: System Environment/Daemons License: GPL @@ -27,6 +27,7 @@ Patch1: rpcbind-0.1.4-compile.patch Patch2: rpcbind-0.1.4-debug.patch Patch3: rpcbind-0.1.4-warmstarts.patch Patch4: rpcbind-0.1.4-rpcuser.patch +Patch5: rpcbind-0.1.4-iff_up.patch %description The rpcbind utility is a server that converts RPC program numbers into @@ -40,6 +41,8 @@ RPC calls on a server on that machine. %patch2 -p1 %patch3 -p1 %patch4 -p1 +# 240873: rpcbind segfaults on startup - ipv6 related +%patch5 -p1 %build %ifarch s390 s390x @@ -118,6 +121,9 @@ fi %dir %attr(700,rpc,rpc) /var/lib/rpcbind %changelog +* Tue May 22 2007 Steve Dickson 0.1.4-6 +- Fixed an ipv6 related segfault on startup (bz 240873) + * Wed Apr 18 2007 Steve Dickson 0.1.4-5 - Added dependency on setup which contains the correct rpcbind /etc/service entry which in turns stops