BZ#16469: don't drop trailing dot in res_nquerydomain(..., name, NULL, ...)
commitf3d945d5f2b9d7d44032c461af588c6d54f5664b
authorAlexandre Oliva <aoliva@redhat.com>
Sun, 9 Nov 2014 15:51:09 +0000 (9 13:51 -0200)
committerAlexandre Oliva <aoliva@redhat.com>
Fri, 21 Nov 2014 05:39:37 +0000 (21 03:39 -0200)
tree6e365e94f4ef21ee5d608a5027d9daaa3d7c8af6
parent4969890247d7d6a548f17641ed5a18f4b713d211
BZ#16469: don't drop trailing dot in res_nquerydomain(..., name, NULL, ...)

If we drop it here, we will fail to detect a duplicate trailing dot
later on.  Retaining, OTOH, has no ill effects whatsoever, and it even
saves us the trouble of copying the domain name minus the trailing
dot, like we used to do.

for ChangeLog

[BZ #16469]
* NEWS: Update.
* resolv/res_query.c (__libc_res_nquerydomain): Retain
trailing dot.
* posix/tst-getaddrinfo5.c: New.
* posix/Makefile (tests): Add it.
ChangeLog
NEWS
posix/Makefile
posix/tst-getaddrinfo5.c [new file with mode: 0644]
resolv/res_query.c