about summary refs log tree commit diff
path: root/nss/tst-nss-files-hosts-v4mapped.root
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2023-07-19 09:55:31 +0200
committerAndreas Schwab <schwab@suse.de>2023-07-24 13:16:24 +0200
commitc437631485a85c3bd034e12f53dd1c8207f05940 (patch)
treee04c248f4786004f6568e0f05b11e089b5083b85 /nss/tst-nss-files-hosts-v4mapped.root
parentbb9a4fc02841cf58a112a44b259477547893838b (diff)
downloadglibc-c437631485a85c3bd034e12f53dd1c8207f05940.tar.gz
glibc-c437631485a85c3bd034e12f53dd1c8207f05940.tar.xz
glibc-c437631485a85c3bd034e12f53dd1c8207f05940.zip
Restore lookup of IPv4 mapped addresses in files database (bug 25457)
This was broken by commit 9c02d0784d ("nss_files: Remove RES_USE_INET6
from hosts processing"), which removed too much.
Diffstat (limited to 'nss/tst-nss-files-hosts-v4mapped.root')
-rw-r--r--nss/tst-nss-files-hosts-v4mapped.root/etc/hosts1
-rw-r--r--nss/tst-nss-files-hosts-v4mapped.root/etc/nsswitch.conf1
2 files changed, 2 insertions, 0 deletions
diff --git a/nss/tst-nss-files-hosts-v4mapped.root/etc/hosts b/nss/tst-nss-files-hosts-v4mapped.root/etc/hosts
new file mode 100644
index 0000000000..609b25ad39
--- /dev/null
+++ b/nss/tst-nss-files-hosts-v4mapped.root/etc/hosts
@@ -0,0 +1 @@
+192.168.0.1 v4mapped
diff --git a/nss/tst-nss-files-hosts-v4mapped.root/etc/nsswitch.conf b/nss/tst-nss-files-hosts-v4mapped.root/etc/nsswitch.conf
new file mode 100644
index 0000000000..5b0c6a4199
--- /dev/null
+++ b/nss/tst-nss-files-hosts-v4mapped.root/etc/nsswitch.conf
@@ -0,0 +1 @@
+hosts: files