>  I applied some simpler fixes for these bugs, but here is
>  the big one which is largish. I can use an additional pair
>  of eyes here.
>
>  Please review attached patch and apply if it looks ok.

I found a buglet myself (wasn't supplying an "aughmented" name
with search domain appended). Fixed in attached patch.

It lloks like this version also fixes
http://bugs.busybox.net/view.php?id=671 -

"com" is my search domain:

# ./test ibm
h_name:'ibm.com'    <==== what name was actually used to find this IP
h_length:4
h_addrtype: 2 AF_INET
alias:'ibm'         <==== original name passed to gethostbyname
addr: 0x67102a81 '129.42.16.103'
addr: 0x67112a81 '129.42.17.103'
addr: 0x67122a81 '129.42.18.103'

According to bug 671 comment, this is what POSIX requires.
glibc does not include bare 'ibm'. In the case shown above,
glibc simply does not return any aliases.
--
vda

Attachment: b.patch
Description: Binary data

_______________________________________________
uClibc mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/uclibc

Reply via email to