From alc@cs.rice.edu  Wed May 15 22:25:41 1996
Received: from cs.rice.edu (cs.rice.edu [128.42.1.30])
          by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id WAA25460
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 May 1996 22:25:40 -0700 (PDT)
Received: from acpc.cs.rice.edu (acpc.cs.rice.edu [128.42.1.67]) by cs.rice.edu (8.7.1/8.7.1) with ESMTP id AAA06780 for <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 May 1996 00:25:39 -0500 (CDT)
Received: (from alc@localhost) by acpc.cs.rice.edu (8.7.3/8.7.3) id AAA03613; Thu, 16 May 1996 00:25:38 -0500 (CDT)
Message-Id: <199605160525.AAA03613@acpc.cs.rice.edu>
Date: Thu, 16 May 1996 00:25:38 -0500 (CDT)
From: Alan Cox <alc@cs.rice.edu>
Reply-To: alc@cs.rice.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject:
X-Send-Pr-Version: 3.2

>Number:         1207
>Category:       bin
>Synopsis:       YP netgroups in /etc/hosts.equiv don't work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    wpaul
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 15 22:30:02 PDT 1996
>Closed-Date:    Tue May 21 09:13:50 PDT 1996
>Last-Modified:  Tue Nov 27 18:53:05 PST 2001
>Originator:     Alan Cox
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
>Environment:

	

>Description:

YP netgroups in /etc/hosts.equiv don't seem to work in the current -stable.
As of 4-6 weeks ago, it was fine.

My /etc/hosts.equiv looks like

+@cs

cs is a valid netgroup.

>How-To-Repeat:

	

>Fix:
	
	

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->wpaul 
Responsible-Changed-By: joerg 
Responsible-Changed-When: Thu May 16 13:04:43 MET DST 1996 
Responsible-Changed-Why:  
Bill is our Mr. YP. 
State-Changed-From-To: open->analyzed 
State-Changed-By: wpaul 
State-Changed-When: Thu May 16 11:12:22 PDT 1996 
State-Changed-Why:  

I don't see anything immediately wrong with innetgr(), and I know the 
code in rcmd.c that does the netgroup evaluations hasn't changed. So 
either I'm missing something subtle or I'm confused due to a lack of 
information. :) 

I need to know if you have an /etc/netgroup file, and if so, what's 
in it. The are a few possibilities: 

- /etc/netgroup doesn't exist -- NIS netgroups are used only 

- /etc/netgroup exists but is empty -- NIS used only 

- /etc/netgroup exists an contains only a '+' -- NIS used only 

- /etc/netgroup exists, contains local netgroup info and a '+' -- both 
local and NIS netgroup data will be evaluated 

- /etc/netgroup exists, contains local netgroup info and nothing else -- only 
local info is evaluated 

It would be helpful to know which of these matches your configuration. 
Also, check the formatting of your /etc/hosts.equiv file. Look for 
things like leading spaces, blank lines or hidden control characters 
that might be confusing the parser in rcmd.c. 

-Bill 
State-Changed-From-To: analyzed->closed 
State-Changed-By: wpaul 
State-Changed-When: Tue May 21 09:13:50 PDT 1996 
State-Changed-Why:  

Fix for the _listmatch() function has been applied to getnetgrent.c in 
both FreeBSD-current (revision 1.16) and FreeBSD-stable (revision 1.8.4.5). 

>Unformatted:

no
YP netgroups in /etc/hosts.equiv don't work in the current -stable.
serious
high
sw-bug
