From b77e6cd62103be90cd9cdd8e24372cb5324916ad Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 10 Dec 1998 09:47:59 +0000 Subject: Update. 1998-12-10 Ulrich Drepper * inet/getnetgrent_r.c (innetgr): Check host and domain name with strcasecmp, not strcmp. [PR libc/894]. 1998-12-08 Andreas Jaeger * posix/regex.h: Declare re_comp, re_exec if compiling for libc to get prototypes. * wctype/wctype.h: Add prototypes for __iswblank_l and iswblank. 1998-12-08 Andreas Jaeger * sysdeps/unix/sysv/linux/gethostid.c: Include to get prototype for __gethostbyname_r. * include/time.h: Add declarations of internal interfaces. * time/tzset.c: Remove declarations of internal interfaces. * time/gmtime.c: Likewise. * time/localtime.c: Likewise. * time/offtime.c: Likewise. * time/tzfile.c: Likewise. --- inet/getnetgrent_r.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'inet/getnetgrent_r.c') diff --git a/inet/getnetgrent_r.c b/inet/getnetgrent_r.c index a04a47712a..d3443793bf 100644 --- a/inet/getnetgrent_r.c +++ b/inet/getnetgrent_r.c @@ -364,11 +364,12 @@ innetgr (const char *netgroup, const char *host, const char *user, real_entry = 1; if ((entry.val.triple.host == NULL || host == NULL - || strcmp (entry.val.triple.host, host) == 0) + || __strcasecmp (entry.val.triple.host, host) == 0) && (entry.val.triple.user == NULL || user == NULL || strcmp (entry.val.triple.user, user) == 0) && (entry.val.triple.domain == NULL || domain == NULL - || strcmp (entry.val.triple.domain, domain) == 0)) + || __strcasecmp (entry.val.triple.domain, + domain) == 0)) { result = 1; break; -- cgit v1.2.3