From 264f0b36bad3aa71776a16c93ec048c107059813 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Oct 13 2006 17:50:58 +0000 Subject: Unable to mount NFS V3 share where sec=none is specified (bz 210644) --- diff --git a/nfs-utils-1.0.9-nfsmount-authnone.patch b/nfs-utils-1.0.9-nfsmount-authnone.patch new file mode 100644 index 0000000..3e032b6 --- /dev/null +++ b/nfs-utils-1.0.9-nfsmount-authnone.patch @@ -0,0 +1,21 @@ +--- nfs-utils-1.0.9/utils/mount/nfsmount.c.orig 2006-10-13 10:32:02.956172000 -0400 ++++ nfs-utils-1.0.9/utils/mount/nfsmount.c 2006-10-13 10:51:31.641546000 -0400 +@@ -1097,12 +1097,14 @@ + + flavor = mountres->auth_flavors.auth_flavors_val; + while (--i >= 0) { +- if (flavor[i] == data.pseudoflavor) +- yum = 1; + #ifdef NFS_MOUNT_DEBUG +- printf("auth flavor %d: %d\n", +- i, flavor[i]); ++ printf("auth flavor[%d] %d\n", i, flavor[i]); + #endif ++ if (flavor[i] == data.pseudoflavor || ++ flavor[i] == AUTH_NONE) { ++ yum = 1; ++ break; ++ } + } + if (!yum) { + fprintf(stderr, diff --git a/nfs-utils.spec b/nfs-utils.spec index 2757fb1..0472265 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -1,7 +1,7 @@ Summary: NFS utlilities and supporting clients and daemons for the kernel NFS server. Name: nfs-utils Version: 1.0.9 -Release: 8%{?dist} +Release: 9%{?dist} Epoch: 1 # group all 32bit related archs @@ -33,6 +33,7 @@ Patch58: nfs-utils-1.0.9-krb5-memory.patch Patch59: nfs-utils-1.0.9-mount-sloppy.patch Patch60: nfs-utils-1.0.9-mount-man-nfs.patch Patch61: nfs-utils-1.0.9-return-mount-error.patch +Patch62: nfs-utils-1.0.9-nfsmount-authnone.patch Patch100: nfs-utils-1.0.9-compile.patch @@ -86,6 +87,7 @@ This package also contains the mount.nfs and umount.nfs program. %patch59 -p1 %patch60 -p1 %patch61 -p1 +%patch62 -p1 # Do the magic to get things to compile %patch100 -p1 @@ -259,6 +261,9 @@ fi %endif %changelog +* Fri Oct 13 2006 Steve Dickson 1.0.9-9 +- Unable to mount NFS V3 share where sec=none is specified (bz 210644) + * Tue Sep 26 2006 Steve Dickson 1.0.9-8 - mount.nfs was not returning a non-zero exit value on failed mounts (bz 206705)