/* $OpenLDAP$ */
/*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
/* Portions
case '*': /* found wildcard */
return (char *) s;
+ case '(':
+ case ')':
+ return NULL;
+
case '\\':
if( s[1] == '\0' ) return NULL;
for( r=v=0; fval[v] != '\0'; v++ ) {
switch( fval[v] ) {
+ case '(':
+ case ')':
+ case '*':
+ return -1;
+
case '\\':
/* escape */
v++;