1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-05-29 21:58:04 +02:00

* trustdb.c (check_regexp): Modern regexps require REG_EXTENDED.

This commit is contained in:
David Shaw 2002-10-30 23:40:05 +00:00
parent 09158d1e99
commit 179b8570c8
2 changed files with 5 additions and 1 deletions

View 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

View 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);