aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2002-10-30 23:40:05 +0000
committerDavid Shaw <[email protected]>2002-10-30 23:40:05 +0000
commit179b8570c8ababe5fade2cf2cad481bfb75945fe (patch)
treedf08b547b193f5a22e0a431d24fdc08237e05614
parent* packet.h, trustdb.h, trustdb.c (trust_string): New. Return a string (diff)
downloadgnupg-179b8570c8ababe5fade2cf2cad481bfb75945fe.tar.gz
gnupg-179b8570c8ababe5fade2cf2cad481bfb75945fe.zip
* trustdb.c (check_regexp): Modern regexps require REG_EXTENDED.
Diffstat (limited to '')
-rw-r--r--g10/ChangeLog4
-rw-r--r--g10/trustdb.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index 286ae8423..1747227b4 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,7 @@
+2002-10-30 David Shaw <[email protected]>
+
+ * trustdb.c (check_regexp): Modern regexps require REG_EXTENDED.
+
2002-10-29 David Shaw <[email protected]>
* packet.h, trustdb.h, trustdb.c (trust_string): New. Return a
diff --git a/g10/trustdb.c b/g10/trustdb.c
index 1a8e74df1..651baa3ed 100644
--- a/g10/trustdb.c
+++ b/g10/trustdb.c
@@ -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);