From ak03@gte.com Thu Nov 18 13:10:29 1999
Return-Path: <ak03@gte.com>
Received: from [132.197.97.45] (h132-197-97-45.gte.com [132.197.97.45])
	by hub.freebsd.org (Postfix) with ESMTP id BEE8B15193
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 18 Nov 1999 13:10:28 -0800 (PST)
	(envelope-from ak03@gte.com)
Received: (from ak03@localhost)
	by [132.197.97.45] (8.9.3/8.9.3) id QAA42858;
	Thu, 18 Nov 1999 16:10:27 -0500 (EST)
	(envelope-from ak03)
Message-Id: <199911182110.QAA42858@[132.197.97.45]>
Date: Thu, 18 Nov 1999 16:10:27 -0500 (EST)
From: ak03@gte.com
Reply-To: ak03@gte.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: pwd_mkdb UID test breaks NIS entries
X-Send-Pr-Version: 3.2

>Number:         14984
>Category:       bin
>Synopsis:       incorrect UID test in pwd_mkdb
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    eivind
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 18 13:20:01 PST 1999
>Closed-Date:    Mon Nov 22 04:43:33 PST 1999
>Last-Modified:  Mon Nov 22 04:44:34 PST 1999
>Originator:     Alexander Kabaev
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
GTE Laboratories Inc.
>Environment:
       FreeBSD 4.0-CURRENT #0: Thu Nov 11 10:07:49 EST 1999     ak03@kanpc.gte.com:/usr/src/sys/compile/KANPC

>Description:
       passwd file can contain entries such as +:::::: or +user::::::
       which allow local override of some account fields while others
       are supplied by the NIS. pwd_mkdb utility does not allow entries 
       with empty uid and gid fields even for NIS accounts.
>How-To-Repeat:

       Try to add +:::::: entry to the end of password file with vipw
>Fix:

Index: pw_scan.c
===================================================================
RCS file: /usr/ncvs/src/usr.sbin/pwd_mkdb/pw_scan.c,v
retrieving revision 1.11
diff -r1.11 pw_scan.c
90c90
<       else {
---
>       else if (pw->pw_name[0] != '+') {



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->eivind 
Responsible-Changed-By: des 
Responsible-Changed-When: Mon Nov 22 01:06:27 PST 1999 
Responsible-Changed-Why:  
Eivind's breakage. 
State-Changed-From-To: open->closed 
State-Changed-By: eivind 
State-Changed-When: Mon Nov 22 04:43:33 PST 1999 
State-Changed-Why:  
Similar workaround to what the submitter suggested has been committed. 
>Unformatted:
