]> git.sur5r.net Git - openldap/commitdiff
Tokenization is not really well done. This is a temporary fix for parsing
authorJulio Sánchez Fernández <jsanchez@openldap.org>
Mon, 21 Jun 1999 10:08:03 +0000 (10:08 +0000)
committerJulio Sánchez Fernández <jsanchez@openldap.org>
Mon, 21 Jun 1999 10:08:03 +0000 (10:08 +0000)
answers from Innosoft servers, but expect better tokenization in the
future.

libraries/libldap/schema.c

index d5bc4e8bc404e8fb173be25deead14b687109bbc..b51dbafdfe5c0a75f287d96c55b43c277684afe3 100644 (file)
@@ -572,7 +572,12 @@ get_token(const char ** sp, char ** token_val)
        default:
                kind = TK_BAREWORD;
                p = *sp;
-               while ( !isspace(**sp) && **sp != '\0' )
+               while ( !isspace(**sp) &&
+                       **sp != '(' &&
+                       **sp != ')' &&
+                       **sp != '$' &&
+                       **sp != '\'' &&
+                       **sp != '\0' )
                        (*sp)++;
                q = *sp;
                res = LDAP_MALLOC(q-p+1);