diff options
author | deraadt <deraadt@openbsd.org> | 1996-10-05 07:23:03 +0000 |
---|---|---|
committer | deraadt <deraadt@openbsd.org> | 1996-10-05 07:23:03 +0000 |
commit | acc357848286254f58a19389239abd88cc5ffdbb (patch) | |
tree | 472c43b114892a1f1eabd56e1f5f274312083a5d /usr.sbin/rpc.bootparamd | |
parent | [a]cd_play -> [a]cd_play_big. Say hello to cdio(1). (diff) | |
download | wireguard-openbsd-acc357848286254f58a19389239abd88cc5ffdbb.tar.xz wireguard-openbsd-acc357848286254f58a19389239abd88cc5ffdbb.zip |
strcasecmp hostnames; from netbsd
Diffstat (limited to 'usr.sbin/rpc.bootparamd')
-rw-r--r-- | usr.sbin/rpc.bootparamd/bootparamd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/rpc.bootparamd/bootparamd.c b/usr.sbin/rpc.bootparamd/bootparamd.c index 418bed19071..8b0f30429f6 100644 --- a/usr.sbin/rpc.bootparamd/bootparamd.c +++ b/usr.sbin/rpc.bootparamd/bootparamd.c @@ -6,7 +6,7 @@ * Various small changes by Theo de Raadt <deraadt@fsa.ca> * Parser rewritten (adding YP support) by Roland McGrath <roland@frob.com> * - * $Id: bootparamd.c,v 1.3 1996/08/31 01:20:48 deraadt Exp $ + * $Id: bootparamd.c,v 1.4 1996/10/05 07:23:03 deraadt Exp $ */ #include <sys/types.h> @@ -335,7 +335,7 @@ lookup_bootparam(client, client_canonical, id, server, path) #endif /* See if this line's client is the one we are * looking for */ - if (strcmp(word, client) != 0) { + if (strcasecmp(word, client) != 0) { /* * If it didn't match, try getting the * canonical host name of the client @@ -343,7 +343,7 @@ lookup_bootparam(client, client_canonical, id, server, path) * the client we are looking for */ struct hostent *hp = gethostbyname(word); - if (hp == NULL || strcmp(hp->h_name, client)) + if (hp == NULL || strcasecmp(hp->h_name, client)) continue; } contin *= -1; |