diff options
-rw-r--r-- | gnu/usr.sbin/yppasswdd/update.c | 3 | ||||
-rw-r--r-- | gnu/usr.sbin/yppasswdd/yppasswdd.c | 8 |
2 files changed, 3 insertions, 8 deletions
diff --git a/gnu/usr.sbin/yppasswdd/update.c b/gnu/usr.sbin/yppasswdd/update.c index 69bad95..5909712 100644 --- a/gnu/usr.sbin/yppasswdd/update.c +++ b/gnu/usr.sbin/yppasswdd/update.c @@ -26,8 +26,7 @@ #include <rpc/pmap_clnt.h> #include "yppasswd.h" -char *tempname; -extern char *passfile, *opassfile; +char *tempname, *passfile; extern int *allow_chfn, *allow_chsh; #define xprt_addr(xprt) (svc_getcaller(xprt)->sin_addr) diff --git a/gnu/usr.sbin/yppasswdd/yppasswdd.c b/gnu/usr.sbin/yppasswdd/yppasswdd.c index 1088637..7b9a45f 100644 --- a/gnu/usr.sbin/yppasswdd/yppasswdd.c +++ b/gnu/usr.sbin/yppasswdd/yppasswdd.c @@ -30,7 +30,6 @@ extern char *optarg; static char *program_name = ""; static char *version = "yppsswdd " VERSION; char *passfile = _PATH_MASTERPASSWD; -char *opassfile = NULL; int allow_chfn = 0, allow_chsh = 0; #define xprt_addr(xprt) (svc_getcaller(xprt)->sin_addr) @@ -84,7 +83,7 @@ yppasswdprog_1(struct svc_req *rqstp, SVCXPRT *transp) static void usage(FILE *fp, int n) { - fprintf (fp, "usage: %s [-m master password file] [-o password file]\n [-h] [-f] [-s] [-v]\n", program_name ); + fprintf (fp, "usage: %s [-m master password file] [-f] [-s] [-h] [-v]\n", program_name ); exit(n); } @@ -121,14 +120,11 @@ main(int argc, char **argv) /* Parse the command line options and arguments. */ opterr = 0; - while ((c = getopt(argc, argv, "m:o:fshv")) != EOF) + while ((c = getopt(argc, argv, "m:fshv")) != EOF) switch (c) { case 'm': passfile = strdup(optarg); break; - case 'o': - opassfile = strdup(optarg); - break; case 'f': allow_chfn = 1; break; |