Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 14 Mar 2020 10:54:10 -0400
From: Rich Felker <>
Subject: Re: Proposal to match behaviour of gethostbyname to glibc

On Sat, Mar 14, 2020 at 09:24:08AM +0100, Florian Weimer wrote:
> * Wolf:
> > While this is admittedly edge case that most users will not run into, I
> > still think it would be nice to behave the same way as glibc does on
> > this one. And as a bonus, it will be *tiny* bit faster, since there
> > would not be any need to iterate rest of the /etc/hosts file.
> But something has to scan the entire file in “multi on” mode at least,
> to find all relevant addresses.

musl doesn't use/support host.conf, so "multi on" isn't an issue for
us at present.

BTW it's not clear to me how the canonical name would/should be
determined in this example if you allow multiple hits.


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.