]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/test/test-dns-domain.c
shared: normalize the root domain to "." rather than ""
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Jan 2016 20:32:14 +0000 (21:32 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 26 Jan 2016 13:42:04 +0000 (14:42 +0100)
commit3a519900e18c6a36af084cdbcc468f670f4ffdb1
tree092794c53990f2eac5d9a3f815716cc201a52903
parent978c64777ae21f3f86b9feeda75ed49bd8c031ab
shared: normalize the root domain to "." rather than ""

Let's make sure the root domain is normalized to ".", rather than then empty string, so that there's actually something
to see on screen. Normally, we don't append a trailing dot to normalized domain names, but do so in the one exception
of the root domain, taking inspiration from UNIX file system paths.
src/shared/dns-domain.c
src/test/test-dns-domain.c