From 2f1b2a582eda2b8993771bfece902f696c4dd9c4 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 18 Dec 1996 03:24:58 +0000 Subject: Note that ID comparisons are caseblind. svn path=/trunk/; revision=656 --- uid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'uid.c') diff --git a/uid.c b/uid.c index 84f46267..f4e81a9f 100644 --- a/uid.c +++ b/uid.c @@ -163,11 +163,11 @@ void free_str_pair_list(struct idlist **idl) #endif int str_in_list(struct idlist **idl, const char *str) -/* is a given ID in the given list? */ +/* is a given ID in the given list? (comparison is caseblind) */ { if (*idl == (struct idlist *)NULL || str == (char *) NULL) return(0); - else if (strcmp(str, (*idl)->id) == 0) + else if (strcasecmp(str, (*idl)->id) == 0) return(1); else return(str_in_list(&(*idl)->next, str)); -- cgit v1.2.3