From: Kurt Zeilenga Date: Sat, 18 Sep 2004 00:21:29 +0000 (+0000) Subject: descriptors are case insenstive (ITS#3334) X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~525 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ef1ebe0b2cfd699faffc1cfb7c8ad3dd957f4080;p=openldap descriptors are case insenstive (ITS#3334) --- diff --git a/servers/slapd/mr.c b/servers/slapd/mr.c index 77e070b595..ea1c9bd415 100644 --- a/servers/slapd/mr.c +++ b/servers/slapd/mr.c @@ -46,7 +46,7 @@ mr_index_cmp( const struct mindexrec *mir2 = v_mir2; int i = mir1->mir_name.bv_len - mir2->mir_name.bv_len; if (i) return i; - return (strcmp( mir1->mir_name.bv_val, mir2->mir_name.bv_val )); + return (strcasecmp( mir1->mir_name.bv_val, mir2->mir_name.bv_val )); } static int @@ -59,7 +59,7 @@ mr_index_name_cmp( const struct mindexrec *mir = v_mir; int i = name->bv_len - mir->mir_name.bv_len; if (i) return i; - return (strncmp( name->bv_val, mir->mir_name.bv_val, name->bv_len )); + return (strncasecmp( name->bv_val, mir->mir_name.bv_val, name->bv_len )); } MatchingRule *