(innetgr): Check host and domain name with strcasecmp, not strcmp.
authordrepper <drepper>
Thu, 10 Dec 1998 09:47:29 +0000 (09:47 +0000)
committerdrepper <drepper>
Thu, 10 Dec 1998 09:47:29 +0000 (09:47 +0000)
inet/getnetgrent_r.c

index a04a477..d344379 100644 (file)
@@ -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;