Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jul 2002 09:15:53 -0500 (EST)
From:      Steve Ames <steve@virtual-voodoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/40771: inetd.c 1.105 breaks inetd.conf parsing on non IPv6 systems
Message-ID:  <200207191415.g6JEFrPv024575@energistic.com>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207191415.g6JEFrPv024575>