mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Host names are case-insensitive.
This commit is contained in:
parent
c30965b3bd
commit
7cf0cfed6e
1 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
#ifndef lint
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: yppasswdd_main.c,v 1.12 1997/10/13 11:18:50 charnier Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include "yppasswd.h"
|
||||
|
|
@ -236,7 +236,7 @@ name isn't set -- aborting");
|
|||
exit(1);
|
||||
}
|
||||
|
||||
if (strncmp(mastername, (char *)&myname, sizeof(myname))) {
|
||||
if (strncasecmp(mastername, (char *)&myname, sizeof(myname))) {
|
||||
yp_error("master of %s is %s, but we are %s",
|
||||
"passwd.byname", mastername, myname);
|
||||
yp_error("this host is not the NIS master server for \
|
||||
|
|
|
|||
Loading…
Reference in a new issue