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

Re: Distinguished name format & RFC 1779



Frédéric Poels writes:
> Many clients are already in production, they issue ldapsearch('foo=bar++')
> and not ldapsearch('foo=bar\+\+').

oooh, that's a completely unrelated bug which also happens to involve
'+':  slapd switched from re_comp() where '+' is a special character in
regular expressions, to POSIX basic Regular Expressions where it isn't,
but didn't update strcpy_special() accordingly.

Here is a simple patch.  NOTE: This is for 1.3.6, it'll probably be
fixed the opposite way (by using Extended Regular Expressions where '+'
*is* special) in later verions.

*** filterentry.c	Wed Jan 20 05:52:11 1999
--- -	Thu Aug 26 12:05:46 1999
***************
*** 289,293 ****
  		case ']':
  		case '*':
- 		case '+':
  		case '^':
  		case '$':
--- 289,292 ----