libgcj: InetAddress.getByName broken on redhat 5.2

Tom Tromey tromey@cygnus.com
Wed Apr 14 10:41:00 GMT 1999


>>>>> "Bryce" == Bryce McKinlay <bryce@albatross.co.nz> writes:

Bryce> On a Redhat 5.2 system (and presumibly any other glibc 2.0.7
Bryce> based system), InetAddress.getByName throws an exception for
Bryce> any addresses that are not defined in /etc/hosts

Bryce> The patch below increases the size of the buffer to 1024 so
Bryce> that gethostbyname_r doesn't fail (glibc uses this value
Bryce> internally, so it should be sufficient)

Thanks for the patch.  I'm checking in a variant which only changes
the buffer size for glibc 2.0.

Tom



More information about the Java mailing list