summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2005-09-15 23:06:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:11 -0500
commit8bfcb31b0e01d42532db5837b1f0a070eb076bb1 (patch)
tree0122027a1a890ebe612415843511d015a0b78df0 /source4
parent85263c3061a4d086c9ab92b67238477cae15584f (diff)
downloadsamba-8bfcb31b0e01d42532db5837b1f0a070eb076bb1.tar.gz
samba-8bfcb31b0e01d42532db5837b1f0a070eb076bb1.tar.bz2
samba-8bfcb31b0e01d42532db5837b1f0a070eb076bb1.zip
r10250: the comparison is caseless so we must caseless subtract
otherwise we get the wrong result when comparing upper case chars with lower case chars (This used to be commit f6ea6e9382f954be819ec82e28598cdf9cf88661)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/common/attrib_handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/attrib_handlers.c b/source4/lib/ldb/common/attrib_handlers.c
index 412146360c..61ca566570 100644
--- a/source4/lib/ldb/common/attrib_handlers.c
+++ b/source4/lib/ldb/common/attrib_handlers.c
@@ -138,7 +138,7 @@ static int ldb_comparison_fold(struct ldb_context *ldb, void *mem_ctx,
}
while (*s1 == ' ') s1++;
while (*s2 == ' ') s2++;
- return (int)(*s1) - (int)(*s2);
+ return (int)(toupper(*s1)) - (int)(toupper(*s2));
}
/*