aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2020-04-06 00:38:13 +0000
committerNIIBE Yutaka <[email protected]>2020-07-15 05:19:29 +0000
commitb4cbb5f58a00fa5ac9f1282664c0adb7ecfa9e57 (patch)
tree8d852820922d58d38dcfb9ed1c880fbc83841233
parentregexp: Import change from JimTcl. (diff)
downloadgnupg-b4cbb5f58a00fa5ac9f1282664c0adb7ecfa9e57.tar.gz
gnupg-b4cbb5f58a00fa5ac9f1282664c0adb7ecfa9e57.zip
tools: Use internal regexp routines.
* tools/gpg-check-pattern.c: Use jimregexp.h. -- Backport master commit of: 7ee2a9687da9560a5d17c7046c87c2f7a6733d5c Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--tools/gpg-check-pattern.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gpg-check-pattern.c b/tools/gpg-check-pattern.c
index 4db8f3706..e4906d26c 100644
--- a/tools/gpg-check-pattern.c
+++ b/tools/gpg-check-pattern.c
@@ -37,13 +37,13 @@
#endif
#include <sys/stat.h>
#include <sys/types.h>
-#include <regex.h>
#include <ctype.h>
#include "../common/util.h"
#include "../common/i18n.h"
#include "../common/sysutils.h"
#include "../common/init.h"
+#include "../regexp/jimregexp.h"
enum cmd_and_opt_values
@@ -369,7 +369,7 @@ parse_pattern_file (char *data, size_t datalen)
p[strlen(p)-1] = 0; /* Remove optional delimiter. */
array[arrayidx].u.r.regex = xcalloc (1, sizeof (regex_t));
rerr = regcomp (array[arrayidx].u.r.regex, p,
- REG_ICASE|REG_NOSUB|REG_EXTENDED);
+ REG_ICASE|REG_EXTENDED);
if (rerr)
{
char *rerrbuf = get_regerror (rerr, array[arrayidx].u.r.regex);