diff options
author | Bill Fumerola <billf@FreeBSD.org> | 1999-01-01 20:39:37 +0000 |
---|---|---|
committer | Bill Fumerola <billf@FreeBSD.org> | 1999-01-01 20:39:37 +0000 |
commit | 0be7a84b8c7fe162ca228507ab49111e5094736f (patch) | |
tree | fcb49b4aacd6ac968047420a8dbc73806dfba2bf | |
parent | 54724311eecb2b4a154ae57b8db40847a200ca07 (diff) | |
download | src-0be7a84b8c7fe162ca228507ab49111e5094736f.tar.gz src-0be7a84b8c7fe162ca228507ab49111e5094736f.zip |
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
Notes
Notes:
svn path=/head/; revision=42241
-rw-r--r-- | usr.sbin/pwd_mkdb/pwd_mkdb.c | 6 |
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 4c5a5180fb58..bb0398e46a04 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); } |