diff options
author | wosch <wosch@FreeBSD.org> | 1998-01-10 17:27:28 +0000 |
---|---|---|
committer | wosch <wosch@FreeBSD.org> | 1998-01-10 17:27:28 +0000 |
commit | b1ce14e5bea7a10c64ac6da5c47e60491fa40a1e (patch) | |
tree | 4a175664d3fe0aaff4bd0c7d0362b9439538a023 /usr.sbin/pwd_mkdb | |
parent | f4a6b5e087515428f5425970c88ac748698cc728 (diff) | |
download | FreeBSD-src-b1ce14e5bea7a10c64ac6da5c47e60491fa40a1e.zip FreeBSD-src-b1ce14e5bea7a10c64ac6da5c47e60491fa40a1e.tar.gz |
Rename the pwd_mkdb(8) option '-c' to '-C' for better compatiblity
with BSD/OS.
Diffstat (limited to 'usr.sbin/pwd_mkdb')
-rw-r--r-- | usr.sbin/pwd_mkdb/pwd_mkdb.8 | 4 | ||||
-rw-r--r-- | usr.sbin/pwd_mkdb/pwd_mkdb.c | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.8 b/usr.sbin/pwd_mkdb/pwd_mkdb.8 index 589d0e9..d097e7a 100644 --- a/usr.sbin/pwd_mkdb/pwd_mkdb.8 +++ b/usr.sbin/pwd_mkdb/pwd_mkdb.8 @@ -39,7 +39,7 @@ .Nd "generate the password databases" .Sh SYNOPSIS .Nm pwd_mkdb -.Op Fl c +.Op Fl C .Op Fl p .Op Fl d Ar directory .Op Fl u Ar username @@ -63,7 +63,7 @@ different from the historic Version 7 style format. .Pp The options are as follows: .Bl -tag -width flag -.It Fl c +.It Fl C Check if the password file is in the correct format. Do not change, add, or remove any files. .It Fl p diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c index c856536..9d8bf63 100644 --- a/usr.sbin/pwd_mkdb/pwd_mkdb.c +++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)pwd_mkdb.c 8.5 (Berkeley) 4/20/94"; #endif static const char rcsid[] = - "$Id$"; + "$Id: pwd_mkdb.c,v 1.20 1997/10/10 06:27:07 charnier Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -108,16 +108,16 @@ main(argc, argv) char sbuf2[MAXPATHLEN]; char *username; u_int method, methoduid; - int cflag; + int Cflag; - cflag = 0; + Cflag = 0; strcpy(prefix, _PATH_PWD); makeold = 0; username = NULL; - while ((ch = getopt(argc, argv, "cd:pu:v")) != -1) + while ((ch = getopt(argc, argv, "Cd:pu:v")) != -1) switch(ch) { - case 'c': /* verify only */ - cflag = 1; + case 'C': /* verify only */ + Cflag = 1; break; case 'd': strncpy(prefix, optarg, sizeof prefix - 1); @@ -160,7 +160,7 @@ main(argc, argv) error(pname); /* check only if password database is valid */ - if (cflag) { + if (Cflag) { for (cnt = 1; scan(fp, &pwd); ++cnt); exit(0); } |