[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: bug searching for 'attr==+=' (ITS#267)



Aw c'mon, man!  You thinky I no speaky /bin/sh?  Just to humour you, I
added the quotes, but that didn't change a thing.  Of course not: no
searches would have worked if the script was buggy.  Have you run the
script yourself?

Hallvard B Furuseth <openldap-its@OpenLDAP.org> suggested deleting the
"case '+':" line from servers/slapd/filterentry.c.  I tried it and the
bug went away.  However, deleting lines from unfamiliar code makes me
nervous.  Is that the right place to fix this bug?  Here's the diff:

    Index: servers/slapd/filterentry.c
    ===================================================================
    RCS file: /repo/OpenLDAP/pkg/ldap/servers/slapd/filterentry.c,v
    retrieving revision 1.4.2.2.2.1
    diff -r1.4.2.2.2.1 filterentry.c
    291c291
    < 		case '+':
    ---
    >           /* case '+': */

--Noel


> 
> At 06:11 PM 8/23/99 GMT, noel@burton-krahn.com wrote:
> >search='badsearch==+='
> >echo "search: $search should work"
> >ldapsearch -p "$LDAP_PORT" -b "$LDAP_BASE" $search
> 
> s/$search/"$search" and see if that helps.
> 
> Kurt
>