]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: fix the canonical name returned by hosts lookup by name 28370/head
authorDmitry V. Levin <ldv@strace.io>
Tue, 11 Jul 2023 08:00:00 +0000 (08:00 +0000)
committerDmitry V. Levin <ldv@strace.io>
Fri, 14 Jul 2023 13:13:53 +0000 (13:13 +0000)
commit1ddc2f7fbceea4fb051eeb50d356285c7ef9519b
tree5e444b6d69418be7bdad62567ec8ae9494d5497f
parent0ff8f2a33a8f7c225860388faf43fa83f106cfe3
resolved: fix the canonical name returned by hosts lookup by name

In etc_hosts_lookup_by_name(), return the canonical name of the resolved
address instead of the name used to obtain that address.

Resolves: #20158
src/resolve/resolved-etc-hosts.c
test/units/testsuite-75.sh