--- nfs.c-orig Thu Jun 10 03:42:59 1999 +++ nfs.c Thu Jun 10 10:42:56 1999 @@ -40,7 +40,6 @@ #include #include #include -#include #include #ifdef SYSV #include @@ -50,7 +49,6 @@ #include #include #include -#include #include "mount.h" #include "nfs_prot.h" #include @@ -58,7 +56,6 @@ #ifdef READLINE #include -#include #endif /* @@ -169,7 +166,6 @@ 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 @@ #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 @@ return 0; } #else - if (interact) printf("nfs> "); + if (interact) printf("nfsshell> "); if (fgets(buf, bufsize, stdin) == NULL) return 0; #endif @@ -447,16 +443,13 @@ do_setuid(int argc, char **argv) { if (argc > 3) { - fprintf(stderr, "Usage: uid [ []]\n"); + fprintf(stderr, "Usage: 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) {