* trustdb.c (check_regexp): Modern regexps require REG_EXTENDED.
authorDavid Shaw <dshaw@jabberwocky.com>
Wed, 30 Oct 2002 23:40:05 +0000 (23:40 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Wed, 30 Oct 2002 23:40:05 +0000 (23:40 +0000)
g10/ChangeLog
g10/trustdb.c

index 286ae84..1747227 100644 (file)
@@ -1,3 +1,7 @@
+2002-10-30  David Shaw  <dshaw@jabberwocky.com>
+
+       * trustdb.c (check_regexp): Modern regexps require REG_EXTENDED.
+
 2002-10-29  David Shaw  <dshaw@jabberwocky.com>
 
        * packet.h, trustdb.h, trustdb.c (trust_string): New.  Return a
index 1a8e74d..651baa3 100644 (file)
@@ -1335,7 +1335,7 @@ check_regexp(const char *exp,const char *string)
   int ret;
   regex_t pat;
 
-  if(regcomp(&pat,exp,REG_ICASE|REG_NOSUB)!=0)
+  if(regcomp(&pat,exp,REG_ICASE|REG_NOSUB|REG_EXTENDED)!=0)
     return 0;
 
   ret=regexec(&pat,string,0,NULL,0);