rpms/nfs-utils/devel nfs-utils-1.2.1-mount-ipv6-typo.patch, NONE, 1.1 nfs-utils.spec, 1.258, 1.259

Steve Dickson steved at fedoraproject.org
Mon Jan 4 20:49:50 UTC 2010


Author: steved

Update of /cvs/pkgs/rpms/nfs-utils/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29710

Modified Files:
	nfs-utils.spec 
Added Files:
	nfs-utils-1.2.1-mount-ipv6-typo.patch 
Log Message:
mount.nfs: don't use IPv6 unless IPV6_SUPPORTED is set


nfs-utils-1.2.1-mount-ipv6-typo.patch:
 network.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE nfs-utils-1.2.1-mount-ipv6-typo.patch ---
commit 6c3abd83758060356db4fa4e9d69d5bec09865e4
Author: Jeff Layton <jlayton at redhat.com>
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 <jlayton at redhat.com>
    Acked-by: Chuck Lever <chuck.lever at oracle.com>
    Signed-off-by: Steve Dickson <steved at redhat.com>

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;


Index: nfs-utils.spec
===================================================================
RCS file: /cvs/pkgs/rpms/nfs-utils/devel/nfs-utils.spec,v
retrieving revision 1.258
retrieving revision 1.259
diff -u -p -r1.258 -r1.259
--- nfs-utils.spec	14 Dec 2009 16:43:37 -0000	1.258
+++ nfs-utils.spec	4 Jan 2010 20:49:49 -0000	1.259
@@ -2,7 +2,7 @@ Summary: NFS utilities and supporting cl
 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.p
 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
 %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 <steved at redhat.com> 1.2.1-8
+- mount.nfs: don't use IPv6 unless IPV6_SUPPORTED is set
+
 * Mon Dec 14 2009 Steve Dickson <steved at redhat.com> 1.2.1-7
 - Updated to latest upstream RC release: nfs-utils-1-2-2-rc3
 




More information about the fedora-extras-commits mailing list