nss_dns: Do not replace root domain with empty string
authorFlorian Weimer <fweimer@redhat.com>
Thu, 11 Apr 2019 09:37:47 +0000 (11:37 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 11 Apr 2019 09:37:47 +0000 (11:37 +0200)
commite3f454bac0f968216699ca405c127c858f0657c7
tree9239772773f3b761aa4bdf09585bd9fccbff4c57
parent32d85c116dd07b25f58b24204e7b05489f06fed4
nss_dns: Do not replace root domain with empty string

The purpose of the bp[0] == '.' check is unclear.  Only the root domain
starts with '.'.  The empty string is accepted as a domain name in many
places, denoting the root, but using it implicitly is confusing.
ChangeLog
resolv/nss_dns/dns-host.c
resolv/nss_dns/dns-network.c