Unable to mount NFS V3 share where sec=none is specified (bz 210644)

This commit is contained in:
Steve Dickson 2006-10-13 17:50:58 +00:00
parent 32879660ce
commit 264f0b36ba
2 changed files with 27 additions and 1 deletions

View File

@ -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,

View File

@ -1,7 +1,7 @@
Summary: NFS utlilities and supporting clients and daemons for the kernel NFS server. Summary: NFS utlilities and supporting clients and daemons for the kernel NFS server.
Name: nfs-utils Name: nfs-utils
Version: 1.0.9 Version: 1.0.9
Release: 8%{?dist} Release: 9%{?dist}
Epoch: 1 Epoch: 1
# group all 32bit related archs # 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 Patch59: nfs-utils-1.0.9-mount-sloppy.patch
Patch60: nfs-utils-1.0.9-mount-man-nfs.patch Patch60: nfs-utils-1.0.9-mount-man-nfs.patch
Patch61: nfs-utils-1.0.9-return-mount-error.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 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 %patch59 -p1
%patch60 -p1 %patch60 -p1
%patch61 -p1 %patch61 -p1
%patch62 -p1
# Do the magic to get things to compile # Do the magic to get things to compile
%patch100 -p1 %patch100 -p1
@ -259,6 +261,9 @@ fi
%endif %endif
%changelog %changelog
* Fri Oct 13 2006 Steve Dickson <steved@redhat.com> 1.0.9-9
- Unable to mount NFS V3 share where sec=none is specified (bz 210644)
* Tue Sep 26 2006 Steve Dickson <steved@redhat.com> 1.0.9-8 * Tue Sep 26 2006 Steve Dickson <steved@redhat.com> 1.0.9-8
- mount.nfs was not returning a non-zero exit value - mount.nfs was not returning a non-zero exit value
on failed mounts (bz 206705) on failed mounts (bz 206705)