[PATCH] resolv: Mirror the entire resolver configuration in struct resolv_conf

Florian Weimer fweimer@redhat.com
Tue Jul 4 14:10:00 GMT 2017


On 07/04/2017 02:55 PM, Florian Weimer wrote:
> On 07/04/2017 02:21 PM, Florian Weimer wrote:
>> On 07/04/2017 02:16 PM, Andreas Schwab wrote:
>>> 298         if (!(resp->dnsrch[0] == resp->defdname
>>> 299               && resp->dnsrch[MAXDNSRCH] == NULL))
>>
>> Ah.  I assume this breaks for defname[0] == '\0' and dnsrch[0] == NULL.
>>
>> It seems that this is triggered by having a host name which does not
>> contain a dot.  I'll fix this and add a test case.  Thanks.
> 
> And this is the fix I'm going to commit.

Trying again to send the attachment.

Florian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: resolv_conf-matching.patch
Type: text/x-patch
Size: 5200 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20170704/ab7cb3ff/attachment.bin>


More information about the Libc-alpha mailing list