From nobody@FreeBSD.org  Sat Oct 20 14:45:03 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 6606537B405
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 20 Oct 2001 14:45:02 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id f9KLj2K22260;
	Sat, 20 Oct 2001 14:45:02 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200110202145.f9KLj2K22260@freefall.freebsd.org>
Date: Sat, 20 Oct 2001 14:45:02 -0700 (PDT)
From: Frank Tobin <ftobin@neverending.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: portmap(1) cannot be bound solely to 127.0.0.1
X-Send-Pr-Version: www-1.0

>Number:         31393
>Category:       bin
>Synopsis:       portmap(1) cannot be bound solely to 127.0.0.1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 20 14:50:00 PDT 2001
>Closed-Date:    Wed Oct 24 13:18:52 PDT 2001
>Last-Modified:  Wed Oct 24 13:19:43 PDT 2001
>Originator:     Frank Tobin
>Release:        4.4-STABLE
>Organization:
>Environment:
FreeBSD palanthas.neverending.org 4.4-STABLE FreeBSD 4.4-STABLE #6: Tue Sep 25 17:00:03 EDT 2001     root@palanthas.neverending.org:/usr/obj/usr/src/sys/PALANTHAS  i386

>Description:
It is not possible to start portmap listening solely to the localhost (127.0.0.1).  The problem is that portmap always appends 127.0.0.1 to every list of -h options (addresses) passed in, and then dies when tryin to bind to the localhost port the second time.
>How-To-Repeat:
Run "portmap -h 127.0.0.1".  portmap will die.
>Fix:
One solution would be to have portmap not add 127.0.0.1 automatically to its list; this functionality is probably not a good design.  But due to backwards compatibility, a more desirable option would be to just have to check if 127.0.0.1 is in hosts[] before adding it a second time to the list of addresses to bind to.
>Release-Note:
>Audit-Trail:

From: Ceri <ceri@techsupport.co.uk>
To: Frank Tobin <ftobin@neverending.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/31393: portmap(1) cannot be bound solely to 127.0.0.1
Date: Tue, 23 Oct 2001 09:07:05 +0100

 There is already a patch for this in bin/30235
 
 I believe this problem no longer exists in -current, so this patch would
 need to be applied directly to -stable, so if you could test it out that
 would be good.
 
 Please submit followup to that PR, so that this PR can be closed.
 
 Ceri
 
State-Changed-From-To: open->closed 
State-Changed-By: dwmalone 
State-Changed-When: Wed Oct 24 13:18:52 PDT 2001 
State-Changed-Why:  
Closed at submitters request as a duplicate of PR 30235, which contains 
patches. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31393 
>Unformatted:
