From 813ac37954352d3ca597cdcf895fc5aec22dec15 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Tue, 13 Mar 2007 12:47:40 +1100 Subject: [PATCH] Add support for "mount -o sec=none" For completeness... and who knows, someone might want it. --- utils/mount/nfsmount.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/mount/nfsmount.c b/utils/mount/nfsmount.c index 507ccdb..b78daad 100644 --- a/utils/mount/nfsmount.c +++ b/utils/mount/nfsmount.c @@ -638,7 +638,9 @@ parse_options(char *old_opts, struct nfs_mount_data *data, if (nfs_mount_version < 5) { printf(_("Warning: ignoring sec=%s option\n"), secflavor); continue; - } else if (!strcmp(secflavor, "sys")) + } else if (!strcmp(secflavor, "none")) + data->pseudoflavor = AUTH_NONE; + else if (!strcmp(secflavor, "sys")) data->pseudoflavor = AUTH_SYS; else if (!strcmp(secflavor, "krb5")) data->pseudoflavor = AUTH_GSS_KRB5; -- 2.39.5