From jbackus@plex.nl  Wed Dec 30 10:20:34 1998
Received: from gw-nl3.philips.com (gw-nl3.philips.com [192.68.44.35])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA14402
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 30 Dec 1998 10:20:29 -0800 (PST)
          (envelope-from jbackus@plex.nl)
Received: from smtprelay-nl1.philips.com (localhost.philips.com [127.0.0.1])
          by gw-nl3.philips.com with ESMTP id TAA14928
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 30 Dec 1998 19:20:08 +0100 (MET)
          (envelope-from jbackus@plex.nl)
Received: from smtprelay-eur1.philips.com(130.139.36.3) by gw-nl3.philips.com via mwrap (4.0a)
	id xma014926; Wed, 30 Dec 98 19:20:08 +0100
Received: from dibbs1.eur.cis.philips.com (dibbs1.eur.cis.philips.com [130.139.33.66]) 
	by smtprelay-nl1.philips.com (8.8.5/8.6.10-1.2.2m-970826) with ESMTP id TAA19193
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 30 Dec 1998 19:20:07 +0100 (MET)
Received: from hal.mpn.cp.philips.com (hal.mpn.cp.philips.com [130.139.64.195])
	by dibbs1.eur.cis.philips.com (8.8.8/8.8.8) with SMTP id TAA11953
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 30 Dec 1998 19:20:07 +0100 (MET)
Received: (qmail 32465 invoked from network); 30 Dec 1998 18:20:27 -0000
Received: from unknown (HELO jos.mp-c.com) (172.16.121.86)
  by hal.mpn.cp.philips.com with SMTP; 30 Dec 1998 18:20:27 -0000
Received: (qmail 1353 invoked by uid 1000); 30 Dec 1998 17:07:09 -0000
Message-Id: <19981230170709.1352.qmail@jos.mp-c.com>
Date: 30 Dec 1998 17:07:09 -0000
From: jbackus@plex.nl
Reply-To: Jos Backus <jbackus@plex.nl>
To: FreeBSD-gnats-submit@freebsd.org
Subject: pwd_mkdb: -N flag doesn't work
X-Send-Pr-Version: 3.2

>Number:         9248
>Category:       bin
>Synopsis:       One cannot invoke the no-lock function of pwd_mkdb
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 30 10:30:01 PST 1998
>Closed-Date:    Fri Jan 1 12:41:38 PST 1999
>Last-Modified:  Fri Jan  1 12:42:18 PST 1999
>Originator:     Jos Backus
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
Organized? Me?
>Environment:

	-current, possibly -stable as of today

>Description:

  -N option doesn't work because it is missing from the getopt string.

>How-To-Repeat:

jos:~# pwd_mkdb -C -N /etc/master.passwd
pwd_mkdb: illegal option -- N
usage: pwd_mkdb [-C] [-p] [-d <dest dir>] [-s <cachesize>]
 [-u <local username>] file
jos:~#	

>Fix:
	
	Trivial:

--- pwd_mkdb.c.orig	Wed Dec 30 18:01:29 1998
+++ pwd_mkdb.c	Wed Dec 30 18:01:40 1998
@@ -115,7 +115,7 @@
 	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;

>Release-Note:
>Audit-Trail:

From: Jos Backus <jbackus@plex.nl>
To: FreeBSD-gnats-submit@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG
Cc:  Subject: Re: bin/9248: pwd_mkdb: -N flag doesn't work
Date: Wed, 30 Dec 1998 22:18:06 +0100

 Oops, forgot to patch the usage message:
 
 --- pwd_mkdb.c.orig     Wed Dec 30 22:12:52 1998
 +++ pwd_mkdb.c  Wed Dec 30 22:13:05 1998
 @@ -614,6 +614,6 @@
  {
 
         (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);
  }
 
 -- 
 Jos Backus                 _/  _/_/_/        "Modularity is not a hack."
                           _/  _/   _/                -- D. J. Bernstein
                          _/  _/_/_/             
                     _/  _/  _/    _/
 jbackus@plex.nl     _/_/   _/_/_/            use Std::Disclaimer;
State-Changed-From-To: open->closed 
State-Changed-By: billf 
State-Changed-When: Fri Jan 1 12:41:38 PST 1999 
State-Changed-Why:  
Updated in rev 1.30 of src/usr.sbin/pwd_mkdb/pwd_mkdb.c by billf 
>Unformatted:
