This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Track resolv.conf patch in glibc
- From: Florian Weimer <fweimer at redhat dot com>
- To: Khem Raj <raj dot khem at gmail dot com>
- Cc: "Joseph S. Myers" <joseph at codesourcery dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Sat, 24 Jun 2017 16:20:37 +0200
- Subject: Re: Track resolv.conf patch in glibc
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=fweimer at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 557F54E34C
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 557F54E34C
- References: <CAMKF1srD3Gd=vqvBveJQSGLvohwMcDpmnEwFbcW8tomG9NVCeA@mail.gmail.com> <9c4f5067-126d-6970-3ba1-ccf61123e4ec@redhat.com> <CAMKF1spi8b3uH8JkxM=-tNSRgD-T84H-KBCQcm7LsxC-cW26gw@mail.gmail.com>
On 06/24/2017 01:06 AM, Khem Raj wrote:
>> The patch you quoted breaks the _res interface, including internal use
>> by glibc within getaddrinfo. A proper fix is rather difficult.
>
> I see that debian
>
> http://sources.debian.net/src/glibc/2.24-12/debian/patches/any/local-dynamic-resolvconf.diff/
>
> and OpenEmbedded both are carrying this fix. What
> would be the forward path.
Verify that the _res structure has not been patched by the application
before overwriting it with the /etc/resolv.conf contents.
Florian