aboutsummaryrefslogtreecommitdiffstats
path: root/uid.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-12-18 03:24:58 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-12-18 03:24:58 +0000
commit2f1b2a582eda2b8993771bfece902f696c4dd9c4 (patch)
tree95e070506ec24039c0a3ca9446de471df9239c23 /uid.c
parentfff83f3df76ebb49a18309de1c37d0988b0d2629 (diff)
downloadfetchmail-2f1b2a582eda2b8993771bfece902f696c4dd9c4.tar.gz
fetchmail-2f1b2a582eda2b8993771bfece902f696c4dd9c4.tar.bz2
fetchmail-2f1b2a582eda2b8993771bfece902f696c4dd9c4.zip
Note that ID comparisons are caseblind.
svn path=/trunk/; revision=656
Diffstat (limited to 'uid.c')
-rw-r--r--uid.c4
1 files changed, 2 insertions, 2 deletions
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));