From efabbd450473c02b7a20de6a0169f75c9df2ca87 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 9 Sep 2001 10:39:49 +0000 Subject: Caseblind suffix comparisons. svn path=/trunk/; revision=3458 --- checkalias.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkalias.c b/checkalias.c index 90a7ffd5..8525d24a 100644 --- a/checkalias.c +++ b/checkalias.c @@ -143,7 +143,7 @@ int is_host_alias(const char *name, struct query *ctl) continue; ep = (char *)name + (namelen - strlen(idl->id)); /* a suffix led by . must match */ - if (ep[-1] == '.' && !strcmp(ep, idl->id)) + if (ep[-1] == '.' && !strcasecmp(ep, idl->id)) return(TRUE); } -- cgit v1.2.3