This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] resolv: Mirror the entire resolver configuration in struct resolv_conf
- From: Florian Weimer <fweimer at redhat dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 4 Jul 2017 14:21:25 +0200
- Subject: Re: [PATCH] resolv: Mirror the entire resolver configuration in struct resolv_conf
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx07.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 81F66C04B952
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 81F66C04B952
- References: <20170630193802.80D6C439942F0@oldenburg.str.redhat.com> <mvmh8ysirv4.fsf@suse.de> <5bb0919b-0dfe-df45-5033-ca610fee52d6@redhat.com> <mvmo9t0h0qi.fsf@suse.de> <79fd6bdd-7a1d-ba01-1423-ae1c497c9476@redhat.com> <mvmk23ogzxd.fsf@suse.de>
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.
Florian