summaryrefslogtreecommitdiff
path: root/nss/test-netdb.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-04-29 12:18:08 +0000
committerUlrich Drepper <drepper@redhat.com>1999-04-29 12:18:08 +0000
commit16b0f634a020651c15a7e7fec08e57b9d31783fe (patch)
treeffbf68d0476e37a2a8ddbf26630c13e2993bf351 /nss/test-netdb.c
parent2c68584cdd5fdd2ff82292a47410a8602c7c35b5 (diff)
downloadglibc-16b0f634a020651c15a7e7fec08e57b9d31783fe.tar.gz
Update.
1999-04-28 Andreas Jaeger <aj@arthur.rhein-neckar.de> * nss/digits_dots.c: Use inet_aton to parse IPv4 numbers. This allows e.g. gethostbyname to accept "10.1234". Reported by Alexander V. Lukyanov <lav@long.yar.ru> [PR libc/1096]. * nss/test-netdb.c (test_hosts): Add test for gethostbyname and non quad IPv4 numbers. loaded shared object with all loaded objects. Initialize l_ino
Diffstat (limited to 'nss/test-netdb.c')
-rw-r--r--nss/test-netdb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nss/test-netdb.c b/nss/test-netdb.c
index 7f1a767b4e..358d072a9c 100644
--- a/nss/test-netdb.c
+++ b/nss/test-netdb.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Andreas Jaeger <aj@arthur.rhein-neckar.de>, 1998.
@@ -167,6 +167,9 @@ test_hosts (void)
hptr1 = gethostbyname ("127.0.0.1");
output_hostent ("gethostbyname (\"127.0.0.1\")", hptr1);
+ hptr1 = gethostbyname ("10.1234");
+ output_hostent ("gethostbyname (\"10.1234\")", hptr1);
+
hptr1 = gethostbyname2 ("localhost", AF_INET);
output_hostent ("gethostbyname2 (\"localhost\", AF_INET)", hptr1);