gethostbyaddr without /etc/{resolv,nsswitch}.conf
Ludovic Courtès
ludo@gnu.org
Tue Jan 21 13:08:00 GMT 2014
Mike Frysinger <vapier@gentoo.org> skribis:
> your use case is reasonable -- if /etc/resolv.conf does not exist, looking up
> an IP address which is listed in /etc/hosts should give the right answer.
Agreed.
> if dns has no settings defined, then it should not be returning NOTFOUND imo.
> it should be UNAVAIL. the pending question then is whether this is an ABI
> break that matters. if it is, it should be easy to create a symbol version
> that returns the old one and create a new symbol version that returns the
> right value. if it isn't, then let's just change the return value and be
> done.
Perhaps the conservative approach of adding a versioned symbol is safer.
What do people think?
Thanks for your input,
Ludo’.
More information about the Libc-alpha
mailing list