Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Aug 1998 00:13:47 -0700
From:      Everett Batey <efb@cotdazr.org>
To:        sthaug@nethelp.no
Cc:        danny@hilink.com.au, freebsd-security@FreeBSD.ORG, ark@eltex.ru
Subject:   Re: PPP.3000.exposure
Message-ID:  <3.0.3.32.19980805001347.00830100@cotdazr.org>
In-Reply-To: <10456.902140848@verdi.nethelp.no>
References:  <Your message of "Mon, 3 Aug 1998 14:25:28 GMT"> <199808031425.OAA01333@paranoid.eltex.spb.ru>

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

For Info of all Bind_8.1.2 With ONLY the shell fix in port/settings 
Builds just FINE on FreeBSD 2.0.5 .. runs here now .. seems not to
be crashable by the net hacks .. 

THANKS folks .. 

Now is there a fast cure for lighting port 3000 in iijppp or is it
truly harmless ???

/Everett/

At 12:40 PM 8/3/98 +0200, sthaug@nethelp.no wrote:
>> > I'm afraid I don't understand what you're talking about. Bind 8.1.2
 
>> ..and does not build on 2.1 systems AT ALL. I always hated "too smart"
>> programs.. it tries to build some scriptfile and fails and i don't even
>> know WHAT should it do if it worked..
>
>It's well known that BIND 8.x doesn't build on 2.1 systems. I sent patches
>for this to the BIND maintainers long ago - see below. Unfortunately, they
>haven't been integrated.
>
>Steinar Haug, Nethelp consulting, sthaug@nethelp.no
>----------------------------------------------------------------------
>To: bind-bugs@isc.org
>Subject: Fixes for bind-8.1.1-T1A on FreeBSD-2.1.7.1 (and earlier)
>From: sthaug@nethelp.no
>Date: Sun, 25 May 1997 15:38:53 +0200
>
>bind-8.1.1-T1A doesn't compile "out of the box" on FreeBSD-2.1.7.1 and
>earlier. This is partly my fault - when I did the original FreeBSD port,
>I didn't have any 2.1.7.1 system to test on (only 2.2 and newer).
>
>I still don't have a 2.1.7.1 system, but I've compiled 8.1.1-T1A on a
>2.2 system, but in a 2.1.7.1 *changerooted* environment (ie. 2.1.7.1
>include files, compilers etc).
>
>There's only one real problem: The following line from port/settings
>tickles a bug in the 2.1.7.1 sh:
>
>	eval "env=`echo \\${\$var-'$val'}`"
>
>and you get the error message:
>
>	port/settings: 1: Syntax error: Bad substitution
>
>The enclosed diff fixes this for FreeBSD 2.1.7.1. The resulting named
>runs fine on FreeBSD 2.2.
>
>I've also verified that the same .settings file (as the original) is
>produced on these platforms:
>
>	SunOS 4.1.3/gcc
>	Solaris 2.5.1/gcc
>	Digital Unix 3.2G/cc
>	HP-UX 10.20/cc
>
>when doing an "out of the box" compile (make clean; make depend; make).
>Note that I've only verified that .settings is equal - I haven't tried
>running 8.1.1-T1A named on all these platforms.
>
>One other change suggested for FreeBSD-2.1.7.1 and earlier: AF_INET6
>is undefined in 2.1.7.1 and earlier, and defined to be 28 in 2.2 and
>newer (/usr/include/sys/socket.h). port/freebsd/include/port_after.h
>currently defines AF_INET6 as 24 (if undefined). I'd suggest changing
>this to 28, to be compatible with newer versions of FreeBSD.
>
>Steinar Haug, Nethelp consulting, sthaug@nethelp.no
>----------------------------------------------------------------------
>*** settings.orig	Tue Dec 17 22:49:17 1996
>--- settings	Sun May 25 14:16:51 1997
>***************
>*** 22,28 ****
>  while read setting; do
>  	var=`expr "$setting" : "'\([A-Z0-9_]*\)="`
>  	val=`expr "$setting" : "'[A-Z0-9_]*=\([^']*\)'\$"`
>! 	eval "env=`echo \\${\$var-'$val'}`"
>  	result="$result '$var=$env'"
>  done
>  
>--- 22,29 ----
>  while read setting; do
>  	var=`expr "$setting" : "'\([A-Z0-9_]*\)="`
>  	val=`expr "$setting" : "'[A-Z0-9_]*=\([^']*\)'\$"`
>! 	rhs="\${""$var""-\$val}"
>! 	eval "env=$rhs"
>  	result="$result '$var=$env'"
>  done
>  
>*** port_after.h.orig	Fri Apr 25 20:12:50 1997
>--- port_after.h	Sun May 25 15:15:47 1997
>***************
>*** 31,35 ****
>   * derived systems for which AF_INET6 is defined.
>   */
>  #ifndef AF_INET6
>! #define AF_INET6	24
>  #endif
>--- 31,35 ----
>   * derived systems for which AF_INET6 is defined.
>   */
>  #ifndef AF_INET6
>! #define AF_INET6	28
>  #endif
>
 + Ev Batey - efb@cotdazr.org - http://www.cotdazr.org - Wa6Cre - Unix +
 + +1 805 228.7180 DSN 296-7180, Eves: +1 800 380.6999 +1 805 985.3146 +
 + VoiceMail: +1 805 340.6471..x5 +1 800 545.6998 .Pgr +1 805 655.2017 +
 http://www.vcd.com - - For Info and Contacts for Ventura County, CA USA

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe security" in the body of the message



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