aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2026-05-21 22:43:50 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2026-05-21 22:43:50 +0000
commit2d91d5e550b1876c4d61f56ec2eccfb311e2c0b3 (patch)
treed73c61d10bde09247689c8b30588681c97106499
parentfa54bb75ff65b1eca0e36ef2d4d4579dbce4b28e (diff)
downloadtipidee-fcgi.tar.gz
Fix regcomp/regexec invocation in cgiwrapper-nollmcrawlerfcgi
-rw-r--r--src/misc/cgiwrapper-nollmcrawler.c4
1 files changed, 2 insertions, 2 deletions
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)
{