$OpenBSD: patch-nfs_c,v 1.1 2007/10/26 21:38:24 jasper Exp $
--- nfs.c.orig	Tue May 19 22:36:10 1998
+++ nfs.c	Fri Oct 26 23:32:30 2007
@@ -40,7 +40,6 @@
 #include <stdlib.h>
 #include <time.h>
 #include <rpc/rpc.h>
-#include <rpc/key_prot.h>
 #include <rpc/pmap_clnt.h>
 #ifdef SYSV
 #include <rpc/clnt_soc.h>
@@ -50,7 +49,6 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <sys/time.h>
-#include <sys/sysmacros.h>
 #include "mount.h"
 #include "nfs_prot.h"
 #include <netinet/in_systm.h>
@@ -58,7 +56,6 @@
 
 #ifdef READLINE
 #include <readline/readline.h>
-#include <readline/history.h>
 #endif
 
 /*
@@ -169,7 +166,6 @@ int interact = 1;		/* interactive mode */
 int authtype = AUTH_UNIX;	/* type of authentication */
 int uid = -2;			/* remote user id (initialy nobody) */
 int gid = -2;			/* remote group id (initialy nobody) */
-keybuf secretkey;		/* remote user's secret key */
 
 /* server information (also used as state information) */
 char *mountpath;		/* remote mount path */
@@ -384,7 +380,7 @@ getline(char *buf, int bufsize, int *argc, char **argv
 #ifdef READLINE
     if (interact) {
 	char *line;
-	if ((line = readline("nfs> ")) == NULL)
+	if ((line = readline("nfsshell> ")) == NULL)
 	    return 0;
 	strncpy(buf, line, bufsize);
 	add_history(line);
@@ -394,7 +390,7 @@ getline(char *buf, int bufsize, int *argc, char **argv
 	    return 0;
     }
 #else
-    if (interact) printf("nfs> ");
+    if (interact) printf("nfsshell> ");
     if (fgets(buf, bufsize, stdin) == NULL)
 	return 0;
 #endif
@@ -447,16 +443,13 @@ void
 do_setuid(int argc, char **argv)
 {
     if (argc > 3) {
-	fprintf(stderr, "Usage: uid [<uid> [<secret-key>]]\n");
+	fprintf(stderr, "Usage: uid [<uid>]\n");
 	return;
     }
 
     if (argc <= 2) {
 	authtype = AUTH_UNIX;
 	uid = argc == 1 ? -2 : atoi(argv[1]);
-    } else if (argc == 3) {
-	authtype = AUTH_DES;
-	memcpy(secretkey, argv[2], HEXKEYBYTES);
     }
 
     if (nfsclient) {
