From 94d5ea5f6b6fea693d1c4a2ed3e81abd10220fe5 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 11 May 2019 06:23:30 +0000 Subject: Accept empty regexes even on BSDs --- src/daemontools-extras/s6-log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/daemontools-extras') diff --git a/src/daemontools-extras/s6-log.c b/src/daemontools-extras/s6-log.c index c3360f4..16f6dd1 100644 --- a/src/daemontools-extras/s6-log.c +++ b/src/daemontools-extras/s6-log.c @@ -786,7 +786,7 @@ static inline void script_secondpass (char const *const *argv, scriptelem_t *scr sel_t selitem = { .type = (*argv)[0] != 'f' ? (*argv)[0] == '+' ? SELTYPE_PLUS : SELTYPE_MINUS : SELTYPE_DEFAULT } ; if ((*argv)[0] != 'f') { - int r = regcomp(&selitem.re, *argv + 1, REG_EXTENDED | REG_NOSUB | REG_NEWLINE) ; + int r = skalibs_regcomp(&selitem.re, *argv + 1, REG_EXTENDED | REG_NOSUB | REG_NEWLINE) ; if (r == REG_ESPACE) { errno = ENOMEM ; -- cgit v1.3.1