summaryrefslogtreecommitdiffstats
path: root/gnu/usr.sbin
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1995-02-01 23:27:46 +0000
committerwpaul <wpaul@FreeBSD.org>1995-02-01 23:27:46 +0000
commit4ced3668eb3ae1f508c16c08c51d1d4cdfe1fd44 (patch)
tree8e7f3c6d2fba1758980a103b4ef1ca97dd596913 /gnu/usr.sbin
parent9b15d8ef61d3abe6f9ef33d4c9c03558813d0f8c (diff)
downloadFreeBSD-src-4ced3668eb3ae1f508c16c08c51d1d4cdfe1fd44.zip
FreeBSD-src-4ced3668eb3ae1f508c16c08c51d1d4cdfe1fd44.tar.gz
Cleaned up usage() -- removed bogus references to opassfile, which isn't
used anymore (/var/yp/Makefile creates a new /var/yp/passwd file from /var/yp/master.passwd using awk, so yppasswdd doesn't have to make it anymore).
Diffstat (limited to 'gnu/usr.sbin')
-rw-r--r--gnu/usr.sbin/yppasswdd/update.c3
-rw-r--r--gnu/usr.sbin/yppasswdd/yppasswdd.c8
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;
OpenPOWER on IntegriCloud