[pkg-firebird-general] todo#7

Damyan Ivanov dam at modsoftsys.com
Tue Mar 6 22:09:33 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- -=| Tamas TEVESZ,  6.03.2007 20:59 |=-
> +    if grep -E '^[^#]*localhost\.localdomain[[:space:]]*$' /etc/hosts.equiv ; then

this would match "blahlocalhost.localdomain". How about:

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

Nice catch, anyway. The original code would match "localhost" both in
"localhost" and "localhost.localdomain".

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.

Or, get the lists of hostnames to add in gds_hosts.equiv by the output
of `getent hosts 127.0.0.1'. On my machine this returns:
  127.0.0.1       localhost beetle localhost.localdomain
This is subject to changes of /etc/hosts though, or DNS mockup...


	dam
- --
Damyan Ivanov                           Modular Software Systems
phone +359(2)928-2611, 929-3993              fax +359(2)920-0994
mobile +359(88)856-6067              JID dam at jabber.minus273.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF7diNHqjlqpcl9jsRAknJAKDDuvw59GYIIzxEsrIh9FXlLr4S9wCgs6zF
xGzKtux30oRQsz2t+Ef+KpE=
=4taf
-----END PGP SIGNATURE-----



More information about the pkg-firebird-general mailing list