]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Add support for "mount -o sec=none"
authorNeil Brown <neilb@suse.de>
Tue, 13 Mar 2007 01:47:40 +0000 (12:47 +1100)
committerNeil Brown <neilb@suse.de>
Tue, 13 Mar 2007 01:47:40 +0000 (12:47 +1100)
For completeness... and who knows, someone might want it.

utils/mount/nfsmount.c

index 507ccdb39902b50dc080eab1b27fe2613e4a7399..b78daadec7f1563930cf23f4fb08c8674cdda7fe 100644 (file)
@@ -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;