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/daemontools-extras/s6-log.c | |
parent | 2051574efa08de08488810669b21d15f387aa3e8 (diff) | |
download | s6-94d5ea5f6b6fea693d1c4a2ed3e81abd10220fe5.tar.xz |
Accept empty regexes even on BSDs
Diffstat (limited to 'src/daemontools-extras/s6-log.c')
-rw-r--r-- | src/daemontools-extras/s6-log.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 ; |