summaryrefslogtreecommitdiff
path: root/libc/inet/rpc/ruserpass.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-06 14:53:37 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-06 14:53:37 +0000
commit92a148d641dced0bdb03bc9e6166356499e49f80 (patch)
treec3ac0e234053bd85b9d4dbbd2d50d84b227a47d0 /libc/inet/rpc/ruserpass.c
parent0c091da2f8c2745c97d0069cfa4acae169d57b41 (diff)
Make use internal str*casecmp/wcscoll
Diffstat (limited to 'libc/inet/rpc/ruserpass.c')
-rw-r--r--libc/inet/rpc/ruserpass.c13
1 files changed, 3 insertions, 10 deletions
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;