nfs-utils/nfs-utils-1.0.9-nfsmount-authnone.patch

22 lines
600 B
Diff

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