head 1.2; access; symbols OPENPKG_E1_MP_HEAD:1.2 OPENPKG_E1_MP:1.2 OPENPKG_E1_MP_2_STABLE:1.1 OPENPKG_E1_FP:1.1 OPENPKG_2_STABLE_MP:1.1 OPENPKG_2_STABLE_20061018:1.1 OPENPKG_2_STABLE_20060622:1.1 OPENPKG_2_STABLE:1.1.0.2 OPENPKG_2_STABLE_BP:1.1; locks; strict; comment @# @; 1.2 date 2006.11.09.17.08.29; author rse; state dead; branches; next 1.1; commitid OReUsbbZUh6p01Ur; 1.1 date 2006.03.11.08.33.41; author rse; state Exp; branches; next ; commitid b4DMCLMNYnn4YJor; desc @@ 1.2 log @upgrading package: ldapdiff 1.2.1 -> 1.2.2 @ text @Index: ldapmisc.c --- ldapmisc.c.orig 2005-11-18 22:17:27.000000000 +0100 +++ ldapmisc.c 2006-03-11 09:28:02.345677747 +0100 @@@@ -29,6 +29,27 @@@@ #include "ldapdiff.h" +static char * +my_strcasestr(s, find) + const char *s, *find; +{ + char c, sc; + size_t len; + + if ((c = *find++) != 0) { + c = tolower((unsigned char)c); + len = strlen(find); + do { + do { + if ((sc = *s++) == 0) + return (NULL); + } while ((char)tolower((unsigned char)sc) != c); + } while (strncasecmp(s, find, len) != 0); + s--; + } + return ((char *)s); +} + int ldifcheckbase(char *attrbase) { char *confbase; @@@@ -36,7 +57,7 @@@@ confbase = ldifgetpconf(CONFBASEDN); - if((pos = strcasestr(attrbase,confbase)) == NULL){ + if((pos = my_strcasestr(attrbase,confbase)) == NULL){ return -1; } @ 1.1 log @add patch to CVS, too @ text @@