From owner-freebsd-bugs Wed Dec 30 10:30:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA15382 for freebsd-bugs-outgoing; Wed, 30 Dec 1998 10:30:11 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA15367 for ; Wed, 30 Dec 1998 10:30:09 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id KAA29306; Wed, 30 Dec 1998 10:30:01 -0800 (PST) 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 ; 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 ; 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 ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/9248: pwd_mkdb: -N flag doesn't work Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 30 10:30:01 PST 1998 >Last-Modified: >Originator: Jos Backus >Organization: Organized? Me? >Release: FreeBSD 3.0-CURRENT i386 >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 ] [-s ] [-u ] 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; >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message