about summary refs log tree commit diff
path: root/inet
diff options
context:
space:
mode:
Diffstat (limited to 'inet')
-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 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;