From fadd6f5f22918fb3e085868b362e3dc013f7b6c3 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Jan 04 2010 20:49:49 +0000 Subject: mount.nfs: don't use IPv6 unless IPV6_SUPPORTED is set --- diff --git a/nfs-utils-1.2.1-mount-ipv6-typo.patch b/nfs-utils-1.2.1-mount-ipv6-typo.patch new file mode 100644 index 0000000..9a25806 --- /dev/null +++ b/nfs-utils-1.2.1-mount-ipv6-typo.patch @@ -0,0 +1,30 @@ +commit 6c3abd83758060356db4fa4e9d69d5bec09865e4 +Author: Jeff Layton +Date: Mon Jan 4 15:42:51 2010 -0500 + + mount.nfs: don't use IPv6 unless IPV6_SUPPORTED is set + Commit 1f3fae1fb25168aac187ff1881738c8ad53a8763 made mount.nfs start + looking up and trying to use IPv6 addresses when mount.nfs was built + against libtirpc (even when --enable-ipv6 wasn't specified). + + The problem seems to be that nfs_nfs_proto_family() is basing the family + on HAVE_LIBTIRPC. I think it should be basing it on IPV6_SUPPORTED + instead. + + Signed-off-by: Jeff Layton + Acked-by: Chuck Lever + Signed-off-by: Steve Dickson + +diff --git a/utils/mount/network.c b/utils/mount/network.c +index e3ad5c2..906e20c 100644 +--- a/utils/mount/network.c ++++ b/utils/mount/network.c +@@ -1344,7 +1344,7 @@ int nfs_nfs_proto_family(struct mount_options *options, + unsigned long protocol; + char *option; + +-#ifdef HAVE_LIBTIRPC ++#ifdef IPV6_SUPPORTED + *family = AF_UNSPEC; + #else + *family = AF_INET; diff --git a/nfs-utils.spec b/nfs-utils.spec index 9168cb2..b22071f 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -2,7 +2,7 @@ Summary: NFS utilities and supporting clients and daemons for the kernel NFS ser Name: nfs-utils URL: http://sourceforge.net/projects/nfs Version: 1.2.1 -Release: 7%{?dist} +Release: 8%{?dist} Epoch: 1 # group all 32bit related archs @@ -23,6 +23,7 @@ Patch01: nfs-utils-1.1.0-smnotify-path.patch Patch02: nfs-utils-1.1.0-exp-subtree-warn-off.patch Patch100: nfs-utils-1.2.2-rc3.patch +Patch101: nfs-utils-1.2.1-mount-ipv6-typo.patch Patch200: nfs-utils-1.2.0-v4root-rel9.patch @@ -77,6 +78,7 @@ This package also contains the mount.nfs and umount.nfs program. %patch02 -p1 %patch100 -p1 +%patch101 -p1 %patch200 -p1 @@ -250,6 +252,9 @@ fi %attr(4755,root,root) /sbin/umount.nfs4 %changelog +* Mon Jan 4 2010 Steve Dickson 1.2.1-8 +- mount.nfs: don't use IPv6 unless IPV6_SUPPORTED is set + * Mon Dec 14 2009 Steve Dickson 1.2.1-7 - Updated to latest upstream RC release: nfs-utils-1-2-2-rc3