From owner-freebsd-bugs Fri Jul 19 7:20:19 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B265D37B400 for ; Fri, 19 Jul 2002 07:20:07 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DA6043E65 for ; Fri, 19 Jul 2002 07:20:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6JEK2JU069600 for ; Fri, 19 Jul 2002 07:20:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6JEK2eq069599; Fri, 19 Jul 2002 07:20:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD59537B400 for ; Fri, 19 Jul 2002 07:15:55 -0700 (PDT) Received: from energistic.com (bdsl.66.12.217.106.gte.net [66.12.217.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 022D043E67 for ; Fri, 19 Jul 2002 07:15:55 -0700 (PDT) (envelope-from steve@energistic.com) Received: from energistic.com (steve@localhost [127.0.0.1]) by energistic.com (8.12.5/8.12.5) with ESMTP id g6JEFrHH025781 for ; Fri, 19 Jul 2002 09:15:54 -0500 (EST) (envelope-from steve@energistic.com) Received: (from steve@localhost) by energistic.com (8.12.5/8.12.5/Submit) id g6JEFrPv024575; Fri, 19 Jul 2002 09:15:53 -0500 (EST) Message-Id: <200207191415.g6JEFrPv024575@energistic.com> Date: Fri, 19 Jul 2002 09:15:53 -0500 (EST) From: Steve Ames Reply-To: Steve Ames To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/40771: inetd.c 1.105 breaks inetd.conf parsing on non IPv6 systems Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 40771 >Category: bin >Synopsis: inetd.c 1.105 breaks inetd.conf parsing on non IPv6 systems >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 19 07:20:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Steve Ames >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: i386 System: FreeBSD energistic.com 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Wed Jul 17 13:53:51 EST 2002 steve@energistic.com:/usr/obj/usr/src/sys/SB i386 i386: AMD Athlon 1.4Ghz, 512M DDR RAM, 5.0-CURRENT (7/17/02) >Description: A recent change to src/usr.sbin/inetd/inetd.c causes inetd.conf lines to be ignored instead of processed. This, in turn, causes a lot of processes not to work properly. The version causing the problem is 1.105. >How-To-Repeat: Upgrade to -CURRENT without IP6 enabled and leave tcp6 lines in your inetd.conf file. The lines are processed normally until the first tcp6 line which is, correctly, ignored. All further lines are ignored with a "IPv6 Ignored" comment (invoking inetd with 'inetd -d'). >Fix: A workaround is just to comment out or remove all IPv6 related lines from your inetd.conf. However since inetd should process them correctly this is only a workaround. The following patch fixes the problem. --------------------------------------------------------- --- inetd.c.old Mon Jul 15 14:09:33 2002 +++ inetd.c Thu Jul 18 11:53:55 2002 @@ -1726,12 +1726,9 @@ if (v6bind != 0 && no_v6bind != 0) { syslog(LOG_INFO, "IPv6 bind is ignored for %s", sep->se_service); - if (v4bind && no_v4bind == 0) - v6bind = 0; - else { - freeconfig(sep); - goto more; - } + v6bind = 0; + freeconfig(sep); + goto more; } if (v6bind != 0) { sep->se_family = AF_INET6; --------------------------------------------------------- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message