aboutsummaryrefslogtreecommitdiff
path: root/nss/nss_files
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-08-01 16:12:06 +0000
committerAndreas Jaeger <aj@suse.de>2000-08-01 16:12:06 +0000
commit9bd0bec2c9f4e21332f37618faff5a01c7d876de (patch)
treec3060576eb7ca202633949113abd2e500da619c1 /nss/nss_files
parenteba8c0e2240c3d554617b77c9c798786393e8460 (diff)
downloadglibc-9bd0bec2c9f4e21332f37618faff5a01c7d876de.tar
glibc-9bd0bec2c9f4e21332f37618faff5a01c7d876de.tar.gz
glibc-9bd0bec2c9f4e21332f37618faff5a01c7d876de.tar.bz2
glibc-9bd0bec2c9f4e21332f37618faff5a01c7d876de.zip
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.
Diffstat (limited to 'nss/nss_files')
-rw-r--r--nss/nss_files/files-ethers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nss/nss_files/files-ethers.c b/nss/nss_files/files-ethers.c
index 17e02decad..3a6dcbc76e 100644
--- a/nss/nss_files/files-ethers.c
+++ b/nss/nss_files/files-ethers.c
@@ -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.
The GNU C Library is free software; you can redistribute it and/or
@@ -45,7 +45,7 @@ LINE_PARSER
if (cnt < 5)
INT_FIELD (number, ISCOLON , 0, 16, (unsigned int))
else
- INT_FIELD (number, isspace, 0, 16, (unsigned int))
+ INT_FIELD (number, isspace, 1, 16, (unsigned int))
if (number > 0xff)
return 0;
@@ -60,7 +60,7 @@ LINE_PARSER
DB_LOOKUP (hostton, 1 + strlen (name), (".%s", name),
{
- if (strcmp (result->e_name, name) == 0)
+ if (__strcasecmp (result->e_name, name) == 0)
break;
}, const char *name)