From: Ralph Corderoy Date: Mon, 17 Apr 2017 13:53:28 +0000 (+0100) Subject: Don't ignore bit 5 of a char when comparing alias names. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/426909810ab50054d49cbcaf712f500933e70637?ds=sidebyside Don't ignore bit 5 of a char when comparing alias names. It's a crude method of ignoring case, but makes `^' equal to `~'. Use tolower(3) instead. http://lists.nongnu.org/archive/html/nmh-workers/2017-03/msg00050.html --- diff --git a/uip/aliasbr.c b/uip/aliasbr.c index 0c1c6ba8..f523fbc5 100644 --- a/uip/aliasbr.c +++ b/uip/aliasbr.c @@ -165,7 +165,7 @@ aleq (char *string, char *aliasent) while ((c = *string++)) { if (*aliasent == '*') return 1; - if ((c | 040) != (*aliasent | 040)) + if (tolower((unsigned char)c) != tolower((unsigned char)*aliasent)) return 0; aliasent++; }