This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: gethostbyaddr without /etc/{resolv,nsswitch}.conf
- From: ludo at gnu dot org (Ludovic CourtÃs)
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 21 Jan 2014 14:07:58 +0100
- Subject: Re: gethostbyaddr without /etc/{resolv,nsswitch}.conf
- Authentication-results: sourceware.org; auth=none
- References: <874n4ziu3f dot fsf at gnu dot org> <201401200128 dot 53231 dot vapier at gentoo dot org>
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â.