[pkg-firebird-general] todo#7

Tamas TEVESZ ice at extreme.hu
Tue Mar 6 22:29:44 CET 2007


On Tue, 6 Mar 2007, Damyan Ivanov wrote:

 >   grep -q -E "^[[:space:]]*$h[[:space:]]*\$" $hostsEquiv \
 > 	|| echo $h >> $hostsEquiv

close enough, but you want to add it on a positive match:

grep -Eq '^[[:space:]]*localhost\.localdomain[[:space:]]*$' &&
    echo 'localhost.localdomain' >> $hostsEquiv

(i see no point in putting it in a for localhost localhost.ld loop, 
since localhost is added *anyway*)


 > I am wondering would it be easier to patch the stupid code that uses
 > gds_hosts.equiv to understand that if the other point of the tcp
 > connection is in 127.0.0.0/8, then it certainly is coming from the local
 > machine.

i say don't. we're making this bigger than it actually is. all that is 
needed is a freakin' gds_hosts.equiv, with a mandatory `localhost' 
(fine thus far) and an optional `localhost.localdomain'. we've been 
doing this mental masturbation on this latter one for the third day 
now. if you can't decide, just add it and be done with it for good. 
harm won't be done (that i can see right now :)

:)

-- 
[-]

mkdir /nonexistent



More information about the pkg-firebird-general mailing list