This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] [BZ #20900] Call __res_vinit if _PATH_RESCONF is changed
- From: Mike Frysinger <vapier at gentoo dot org>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Joseph Myers <joseph at codesourcery dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 2 Dec 2016 04:22:55 -0500
- Subject: Re: [PATCH] [BZ #20900] Call __res_vinit if _PATH_RESCONF is changed
- Authentication-results: sourceware.org; auth=none
- References: <20161201185641.GA15507@intel.com> <alpine.DEB.2.20.1612011858430.23993@digraph.polyomino.org.uk> <CAMe9rOrxnRbU5QjRsUHz1Bsux8nqtTVsmGunZo+=i0Uj9V7r4w@mail.gmail.com>
On Thu, Dec 1, 2016 at 2:23 PM, H.J. Lu wrote:
> On Thu, Dec 1, 2016 at 11:02 AM, Joseph Myers wrote:
>> On Thu, 1 Dec 2016, H.J. Lu wrote:
>>
>>> The content of _PATH_RESCONF may change over time with DHCP.
>>> __res_maybe_init should check if _PATH_RESCONF is changed. Otherwise
>>> a long-running process will get wrong DNS results if _PATH_RESCONF is
>>> changed by DHCP.
>>>
>>> Any comments?
>>
>> This bug is either a duplicate of or related to bug 984. There are
>> various patches out there, e.g. one in Debian, and also claims of problems
>> with those patches.
>
> It looks very similar. Does anyone have a link to Debian's patch?
here's the patch i've been carrying in Gentoo for almost a decade, and
i took it from SUSE:
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=727cea2ca77b47681f4678d5fb3180aab89fe9ab
-mike