Author: idra Date: 2005-09-15 23:06:57 +0000 (Thu, 15 Sep 2005) New Revision: 10250
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10250 Log: the comparison is caseless so we must caseless subtract otherwise we get the wrong result when comparing upper case chars with lower case chars Modified: branches/SAMBA_4_0/source/lib/ldb/common/attrib_handlers.c Changeset: Modified: branches/SAMBA_4_0/source/lib/ldb/common/attrib_handlers.c =================================================================== --- branches/SAMBA_4_0/source/lib/ldb/common/attrib_handlers.c 2005-09-15 21:24:14 UTC (rev 10249) +++ branches/SAMBA_4_0/source/lib/ldb/common/attrib_handlers.c 2005-09-15 23:06:57 UTC (rev 10250) @@ -138,7 +138,7 @@ } while (*s1 == ' ') s1++; while (*s2 == ' ') s2++; - return (int)(*s1) - (int)(*s2); + return (int)(toupper(*s1)) - (int)(toupper(*s2)); } /*