commit 0ffd74c990aca3761b79316d47e1b1778273681c From: Steve Dickson <steved@redhat.com> Added support to specify the AUTH_NONE security flavor (i.e. -o sec=none) Signed-off-by: Steve Dickson <steved@redhat.com> --- utils/mount/nfsmount.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/utils/mount/nfsmount.c b/utils/mount/nfsmount.c index d437036..7759260 100644 --- a/utils/mount/nfsmount.c +++ b/utils/mount/nfsmount.c @@ -1093,12 +1093,14 @@ #if NFS_MOUNT_VERSION >= 5 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,