From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RDNS_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 28505 invoked from network); 14 Mar 2020 08:25:55 -0000 Received-SPF: pass (mother.openwall.net: domain of lists.openwall.com designates 195.42.179.200 as permitted sender) receiver=inbox.vuxu.org; client-ip=195.42.179.200 envelope-from= Received: from unknown (HELO mother.openwall.net) (195.42.179.200) by inbox.vuxu.org with ESMTP; 14 Mar 2020 08:25:55 -0000 Received: (qmail 16115 invoked by uid 550); 14 Mar 2020 08:25:51 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 16094 invoked from network); 14 Mar 2020 08:25:51 -0000 From: Florian Weimer To: Wolf Cc: musl@lists.openwall.com References: <20200313214648.2qqr5utzyqy5ewsu@wolfsden.cz> Date: Sat, 14 Mar 2020 09:24:08 +0100 In-Reply-To: <20200313214648.2qqr5utzyqy5ewsu@wolfsden.cz> (Wolf's message of "Fri, 13 Mar 2020 22:46:48 +0100") Message-ID: <871rpvny3b.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [musl] Proposal to match behaviour of gethostbyname to glibc * 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 =E2=80=9Cmulti on=E2=80=9D mod= e at least, to find all relevant addresses.