Skip site navigation (1)Skip section navigation (2)
Date:      30 Dec 1998 17:07:09 -0000
From:      jbackus@plex.nl
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/9248: pwd_mkdb: -N flag doesn't work
Message-ID:  <19981230170709.1352.qmail@jos.mp-c.com>

next in thread | raw e-mail | index | archive | help

>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 <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;

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981230170709.1352.qmail>