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/pwd_mkdb.c | |
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/pwd_mkdb.c')
-rw-r--r-- | usr.sbin/pwd_mkdb/pwd_mkdb.c | 14 |
1 files changed, 7 insertions, 7 deletions
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); } |