diff options
Diffstat (limited to 'libc/inet')
-rw-r--r-- | libc/inet/resolv.c | 2 | ||||
-rw-r--r-- | libc/inet/rpc/ruserpass.c | 13 |
2 files changed, 4 insertions, 11 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c index a6dc549b8..d2f90a270 100644 --- a/libc/inet/resolv.c +++ b/libc/inet/resolv.c @@ -1535,7 +1535,7 @@ int attribute_hidden __read_etc_hosts_r(FILE * fp, const char * name, int type, } else { /* GET_HOSTS_BYNAME */ for (i = 1; i < aliases; i++) - if (strcasecmp(name, alias[i]) == 0) + if (__strcasecmp(name, alias[i]) == 0) break; if (i >= aliases) continue; diff --git a/libc/inet/rpc/ruserpass.c b/libc/inet/rpc/ruserpass.c index b6fd482c5..70a86969b 100644 --- a/libc/inet/rpc/ruserpass.c +++ b/libc/inet/rpc/ruserpass.c @@ -149,18 +149,11 @@ next: * or official hostname. Also allow match of * incompletely-specified host in local domain. */ - if (strcasecmp(host, tokval) == 0) + if (__strcasecmp(host, tokval) == 0) goto match; -/* if (__strcasecmp(hostname, tokval) == 0) - goto match; - if ((tmp = __strchr(hostname, '.')) != NULL && - __strcasecmp(tmp, mydomain) == 0 && - __strncasecmp(hostname, tokval, tmp-hostname) == 0 && - tokval[tmp - hostname] == '\0') - goto match; */ if ((tmp = __strchr(host, '.')) != NULL && - strcasecmp(tmp, mydomain) == 0 && - strncasecmp(host, tokval, tmp - host) == 0 && + __strcasecmp(tmp, mydomain) == 0 && + __strncasecmp(host, tokval, tmp - host) == 0 && tokval[tmp - host] == '\0') goto match; continue; |