summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pwd_mkdb
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>1999-01-01 20:39:37 +0000
committerbillf <billf@FreeBSD.org>1999-01-01 20:39:37 +0000
commit909f97e4b4c7a291987c8c92320b4a804cc578f2 (patch)
tree5e3e20b34f00457a13967552751c8d832503dbf8 /usr.sbin/pwd_mkdb
parenta81a07d54fda900f2f52ffa449a08d552f42a403 (diff)
downloadFreeBSD-src-909f97e4b4c7a291987c8c92320b4a804cc578f2.zip
FreeBSD-src-909f97e4b4c7a291987c8c92320b4a804cc578f2.tar.gz
Enable source file locking in pwd_mkdb by including the proper letter
in getopt(). The code was there, the means to use it wasn't. Also update the usage() statment to reflect reality. PR: bin/9248 Submitted by: Jos Backus <jbackus@plex.nl> Forgotten By: dillon
Diffstat (limited to 'usr.sbin/pwd_mkdb')
-rw-r--r--usr.sbin/pwd_mkdb/pwd_mkdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c
index 4c5a518..bb0398e 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: pwd_mkdb.c,v 1.28 1998/12/12 16:08:41 foxfair Exp $";
+ "$Id: pwd_mkdb.c,v 1.29 1998/12/13 01:53:50 dillon Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -115,7 +115,7 @@ main(argc, argv)
strcpy(prefix, _PATH_PWD);
makeold = 0;
username = NULL;
- while ((ch = getopt(argc, argv, "Cd:ps:u:v")) != -1)
+ while ((ch = getopt(argc, argv, "Cd:ps:u:vN")) != -1)
switch(ch) {
case 'C': /* verify only */
Cflag = 1;
@@ -614,6 +614,6 @@ usage()
{
(void)fprintf(stderr,
-"usage: pwd_mkdb [-C] [-p] [-d <dest dir>] [-s <cachesize>] [-u <local username>] file\n");
+"usage: pwd_mkdb [-C] [-N] [-p] [-d <dest dir>] [-s <cachesize>] [-u <local username>] file\n");
exit(1);
}
OpenPOWER on IntegriCloud