BZ#16469: resolv: skip leading dot in domain to search
Siddhesh Poyarekar
siddhesh@redhat.com
Wed Nov 19 10:31:00 GMT 2014
On Fri, Nov 14, 2014 at 10:10:25PM -0200, Alexandre Oliva wrote:
> This should only happen if the domain to search is the root,
> represented as "." rather than by an empty string. Skipping it here
> prevents libc_res_nquerydomain from duplicating the trailing dot,
> which would cause the domain name compression to fail.
>
> No testcase for this one; we can't really exercise this in a controlled
> fashion without overriding /etc/resolv.conf.
>
> No regressions on x86_64-linux-gnu. Ok to install?
>
>
> for ChangeLog
>
> [BZ #16469]
> * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
> search domain names.
Looks good to me.
Siddhesh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20141119/03f74c2d/attachment.sig>
More information about the Libc-alpha
mailing list