From pherman@frenchfries.net  Thu Jul 27 11:27:30 2000
Return-Path: <pherman@frenchfries.net>
Received: from mail2.netcologne.de (mail2.netcologne.de [194.8.194.103])
	by hub.freebsd.org (Postfix) with ESMTP id 68E5537BA46
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 27 Jul 2000 11:27:28 -0700 (PDT)
	(envelope-from pherman@frenchfries.net)
Received: from bagabeedaboo.security.at12.de (dial-195-14-235-168.netcologne.de [195.14.235.168])
	by mail2.netcologne.de (8.9.3/8.9.3) with ESMTP id UAA06053
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 27 Jul 2000 20:27:26 +0200 (MET DST)
Received: (from pherman@localhost)
	by bagabeedaboo.security.at12.de (8.10.2/8.10.2) id e6RIQI905536;
	Thu, 27 Jul 2000 20:26:18 +0200 (CEST)
Message-Id: <200007271826.e6RIQI905536@bagabeedaboo.security.at12.de>
Date: Thu, 27 Jul 2000 20:23:22 +0200 (CEST)
From: Paul Herman <pherman@frenchfries.net>
To: FreeBSD-gnats-submit@freebsd.org
Subject: rlogind doesn't compile without -DINET6 (w/patch!)

>Number:         20225
>Category:       bin
>Synopsis:       rlogind doesn't compile without -DINET6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ume
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 27 11:30:00 PDT 2000
>Closed-Date:    Fri Jul 28 02:36:27 PDT 2000
>Last-Modified:  Fri Jul 28 02:37:47 PDT 2000
>Originator:     Paul Herman
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
>Environment:

	4.1-STABLE cvsup'ed yesterday.

>Description:

	rlogind doesn't compile without -DINET6.  I found this by
	accident as I was perusing the code.

	This is no big deal, as -DINET6 is always (?) defined, but
	then again, what's the point of having #ifdefs anyway?  :)

>How-To-Repeat:

	cd /usr/src/libexec/rlogind
	[remove -DINET6 from CFLAGS in Makefile]
	make
	[error]

>Fix:

	Like I said, it's no big deal, but neither is the patch:

------------------------------------------------------------------
--- libexec/rlogind/rlogind.c.orig	Thu Jul 27 20:07:37 2000
+++ libexec/rlogind/rlogind.c	Thu Jul 27 20:07:57 2000
@@ -231,9 +231,9 @@
 	hostname[sizeof(hostname) - 1] = '\0';
 
 	{
-		if ((fromp->su_family != AF_INET &&
+		if ((fromp->su_family != AF_INET
 #ifdef INET6
-		     fromp->su_family != AF_INET6
+		     && fromp->su_family != AF_INET6
 #endif
 		     ) ||
 		    fromp->su_port >= IPPORT_RESERVED ||

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->ume 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Fri Jul 28 02:00:12 PDT 2000 
Responsible-Changed-Why:  
Umemoto-san offered to help with IPv6 stuff. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20225 
State-Changed-From-To: open->closed 
State-Changed-By: ume 
State-Changed-When: Fri Jul 28 02:36:27 PDT 2000 
State-Changed-Why:  
Thanks! Committed. (rev 1.30) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20225 
>Unformatted:
