aboutsummaryrefslogtreecommitdiff
path: root/inet/getnetgrent_r.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-12-10 09:47:59 +0000
committerUlrich Drepper <drepper@redhat.com>1998-12-10 09:47:59 +0000
commitb77e6cd62103be90cd9cdd8e24372cb5324916ad (patch)
treedf25857397237d37391fc0727d43e3fbead27a7b /inet/getnetgrent_r.c
parent8632b24036502a41a4e2648cd892d2c4be1e0f73 (diff)
downloadglibc-b77e6cd62103be90cd9cdd8e24372cb5324916ad.zip
glibc-b77e6cd62103be90cd9cdd8e24372cb5324916ad.tar.gz
glibc-b77e6cd62103be90cd9cdd8e24372cb5324916ad.tar.bz2
Update.
1998-12-10 Ulrich Drepper <drepper@cygnus.com> * inet/getnetgrent_r.c (innetgr): Check host and domain name with strcasecmp, not strcmp. [PR libc/894]. 1998-12-08 Andreas Jaeger <aj@arthur.rhein-neckar.de> * 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 <aj@arthur.rhein-neckar.de> * sysdeps/unix/sysv/linux/gethostid.c: Include <netdb.h> 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.
Diffstat (limited to 'inet/getnetgrent_r.c')
-rw-r--r--inet/getnetgrent_r.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/inet/getnetgrent_r.c b/inet/getnetgrent_r.c
index a04a477..d344379 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;