This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Test status before h_errno in gaih_inet
- From: Florian Weimer <fweimer at redhat dot com>
- To: Stan Shebs <stanshebs at google dot com>
- Cc: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Date: Thu, 3 Aug 2017 11:48:35 +0200
- Subject: Re: [PATCH] Test status before h_errno in gaih_inet
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=fweimer at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 80103C0587CB
- References: <CA+5-Q5Kf3Eb5PYm9OusZ-JccCNgKMvLsM0GsnyKVBCD50m8Z8g@mail.gmail.com> <6ce16e5d-2eb2-ed16-93d0-7c9533b327d7@redhat.com>
On 08/19/2016 06:01 PM, Florian Weimer wrote:
> I need to dig further and write up what I find, but I suspect that we
> may have to set h_errno to 0 temporarily to obtain maximum compatibility
> with existing NSS modules, and base the error check on that.
_nss_files_gethostbyname3_r sets *herrnop on success to a non-zero
value, so that does not work.
Florian