From ef1ebe0b2cfd699faffc1cfb7c8ad3dd957f4080 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sat, 18 Sep 2004 00:21:29 +0000 Subject: [PATCH] descriptors are case insenstive (ITS#3334) --- servers/slapd/mr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 * -- 2.39.5