mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
Update.
* nss/nss_files/files-ethers.c: Use case-insensitive lookup. (LINE_PARSER): Allow any number of spaces between ip address and number. Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
This commit is contained in:
parent
eba8c0e224
commit
9bd0bec2c9
@ -1,5 +1,9 @@
|
|||||||
2000-08-01 Andreas Jaeger <aj@suse.de>
|
2000-08-01 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
|
* nss/nss_files/files-ethers.c: Use case-insensitive lookup.
|
||||||
|
(LINE_PARSER): Allow any number of spaces between ip address and number.
|
||||||
|
Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
|
||||||
|
|
||||||
* conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
|
* conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
|
||||||
|
|
||||||
* include/netdb.h: Remove getipnodebyaddr and friends, leave
|
* include/netdb.h: Remove getipnodebyaddr and friends, leave
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
/* Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -45,7 +45,7 @@ LINE_PARSER
|
|||||||
if (cnt < 5)
|
if (cnt < 5)
|
||||||
INT_FIELD (number, ISCOLON , 0, 16, (unsigned int))
|
INT_FIELD (number, ISCOLON , 0, 16, (unsigned int))
|
||||||
else
|
else
|
||||||
INT_FIELD (number, isspace, 0, 16, (unsigned int))
|
INT_FIELD (number, isspace, 1, 16, (unsigned int))
|
||||||
|
|
||||||
if (number > 0xff)
|
if (number > 0xff)
|
||||||
return 0;
|
return 0;
|
||||||
@ -60,7 +60,7 @@ LINE_PARSER
|
|||||||
|
|
||||||
DB_LOOKUP (hostton, 1 + strlen (name), (".%s", name),
|
DB_LOOKUP (hostton, 1 + strlen (name), (".%s", name),
|
||||||
{
|
{
|
||||||
if (strcmp (result->e_name, name) == 0)
|
if (__strcasecmp (result->e_name, name) == 0)
|
||||||
break;
|
break;
|
||||||
}, const char *name)
|
}, const char *name)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user