From root@solander.dcs.gla.ac.uk  Thu Dec  7 06:04:13 1995
Received: from solander.dcs.gla.ac.uk (solander.dcs.gla.ac.uk [130.209.240.201])
          by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id GAA13670
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 7 Dec 1995 06:03:57 -0800 (PST)
Received: (from root@localhost) by solander.dcs.gla.ac.uk (8.6.12/8.6.12) id OAA08055; Thu, 7 Dec 1995 14:03:06 GMT
Message-Id: <199512071403.OAA08055@solander.dcs.gla.ac.uk>
Date: Thu, 7 Dec 1995 14:03:06 GMT
From: simonm@dcs.gla.ac.uk
Reply-To: simonm@dcs.gla.ac.uk
To: FreeBSD-gnats-submit@freebsd.org
Subject: rlogind dumps core in NIS evironment
X-Send-Pr-Version: 3.2

>Number:         872
>Category:       bin
>Synopsis:       rlogind dumps core
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec  7 06:10:00 PST 1995
>Closed-Date:    Sat Dec 9 11:12:24 PST 1995
>Last-Modified:  Sat Dec  9 11:18:47 PST 1995
>Originator:     Operator
>Release:        FreeBSD 2.1.0-RELEASE i386
>Organization:
University of Glasgow, U.K.
>Environment:

/etc/hosts.equiv:
+@cshosts1

/etc/netgroups doesn't exist.

solander# ypmatch cshosts1 netgroup
(rousay,,) (shapinsay,,) (bandos,,) (tanna,,) (lewis,,) (honshu,,) (eigg,,) (angaga,,) (hawaii,,) (vanuata,,) (yap,,) (fiji,,) (guam,,) (java,,) (oahu,,) (samoa,,) (tahiti,,) (kauai,,) (ambrym,,) (emae,,) (epi,,) (gaua,,) (sumatra,,) (borneo,,) (maewo,,) (malo,,) (rotuma,,) (bali,,) (maui,,) (lanai,,) (sicily,,) (ibiza,,) (bressay,,) (molokai,,) (tutuila,,) (manua,,) (koro,,) (tegua,,) (malekula,,) (tuvula,,) (aniwo,,) (starbuck,,) (vostok,,) (gilbert,,) (malden,,) (midway,,) (timor,,) (apia,,) (wake,,) (jarvis,,) (buru,,) (seram,,) (baker,,) (savage-gw,,) (lewis-gw,,) (solomon-gw,,) (barbados-gw,,) (cs-gw1,,) (honshu-gw,,) (angaga-gw,,) (snares,,) (swains,,) (naxos,,) (auckland,,) (campbell,,)

>Description:

Attempting to rlogin from one of the machines in cshosts1 yields:
protocol error, solander closed connection.

The following message appears in the log:
Dec  7 13:55:23 solander /kernel: pid 8026: rlogind: uid 0: exited on signal 11

>How-To-Repeat:

Set up configuration files as above.  Attempt to rlogin from a host in
cshosts1 (any host?).

>Fix:

not known.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wpaul 
State-Changed-When: Sat Dec 9 11:12:24 PST 1995 
State-Changed-Why:  
This bug has been fixed with the last revision of getnetgrent.c. The 
problem is that the code will try to fclose /etc/netgroup without actually 
having fopened it in the case where /etc/netgroup doesn't exist. 
(fclose(NULL) ==> SIGSEGV) 

There is a simple workaround which is to create an /etc/netgroup file 
that is empty (touch /etc/netgroup) or that has only a single plus 
sign ('+') in it.  
>Unformatted:
Charlie &
