diff options
Diffstat (limited to 'inet/getnetgrent_r.c')
-rw-r--r-- | inet/getnetgrent_r.c | 5 |
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; |