diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2019-05-11 06:23:30 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2019-05-11 06:23:30 +0000 |
commit | 94d5ea5f6b6fea693d1c4a2ed3e81abd10220fe5 (patch) | |
tree | e24b00741c74bcaa55fce6fb737a947e6271cf20 /src/libs6 | |
parent | 2051574efa08de08488810669b21d15f387aa3e8 (diff) | |
download | s6-94d5ea5f6b6fea693d1c4a2ed3e81abd10220fe5.tar.xz |
Accept empty regexes even on BSDs
Diffstat (limited to 'src/libs6')
-rw-r--r-- | src/libs6/s6-ftrigrd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs6/s6-ftrigrd.c b/src/libs6/s6-ftrigrd.c index e79ae46..dfb9672 100644 --- a/src/libs6/s6-ftrigrd.c +++ b/src/libs6/s6-ftrigrd.c @@ -7,6 +7,7 @@ #include <signal.h> #include <regex.h> +#include <skalibs/posixplz.h> #include <skalibs/posixishard.h> #include <skalibs/types.h> #include <skalibs/allreadwrite.h> @@ -160,7 +161,7 @@ static int parse_protocol (struct iovec const *v, void *context) answer(ENFILE) ; break ; } - r = regcomp(&a[n].re, s + 16 + pathlen, REG_EXTENDED) ; + r = skalibs_regcomp(&a[n].re, s + 16 + pathlen, REG_EXTENDED) ; if (r) { answer(r == REG_ESPACE ? ENOMEM : EINVAL) ; |