Host names are case-insensitive.
This commit is contained in:
parent
c30965b3bd
commit
7cf0cfed6e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44791
@ -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 New Issue
Block a user