From 2d91d5e550b1876c4d61f56ec2eccfb311e2c0b3 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 21 May 2026 22:43:50 +0000 Subject: Fix regcomp/regexec invocation in cgiwrapper-nollmcrawler --- src/misc/cgiwrapper-nollmcrawler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/misc/cgiwrapper-nollmcrawler.c b/src/misc/cgiwrapper-nollmcrawler.c index e752cf2..05424b8 100644 --- a/src/misc/cgiwrapper-nollmcrawler.c +++ b/src/misc/cgiwrapper-nollmcrawler.c @@ -99,7 +99,7 @@ int main (int argc, char const *const *argv) { regex_t re ; - int e = regcomp(&re, argv[1], REG_EXTENDED) ; + int e = regcomp(&re, argv[1], REG_EXTENDED | REG_NOSUB) ; if (e == REG_BADPAT) strerr_dief2x(100, "invalid regex: ", argv[1]) ; if (e) { @@ -107,7 +107,7 @@ int main (int argc, char const *const *argv) fmt[int_fmt(fmt, e)] = 0 ; strerr_diefu4x(111, "regcomp ", argv[1], ": error code is ", fmt) ; } - e = regexec(&re, x, 0, 0, REG_NOSUB) ; + e = regexec(&re, x, 0, 0, 0) ; if (e == 0) goto writeanddeny ; if (e != REG_NOMATCH) { -- cgit v1.3.1