From: Neil Brown Date: Tue, 13 Mar 2007 01:47:40 +0000 (+1100) Subject: Add support for "mount -o sec=none" X-Git-Tag: nfs-utils-1-1-0-rc1~88 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=813ac37954352d3ca597cdcf895fc5aec22dec15;p=nfs-utils.git Add support for "mount -o sec=none" For completeness... and who knows, someone might want it. --- 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;