From: Paul Eggert Date: Wed, 12 Apr 2006 07:14:53 +0000 (+0000) Subject: (extract_regexp): Set re_syntax_options to a X-Git-Tag: v6.0~513 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a75bb4ae0a1e7547e4396fe67825133606cf9d9;p=thirdparty%2Fcoreutils.git (extract_regexp): Set re_syntax_options to a value that is compatible with what POSIX requires. --- diff --git a/src/csplit.c b/src/csplit.c index 825c9c1960..4544a3ed10 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -1121,6 +1121,7 @@ extract_regexp (int argnum, bool ignore, char const *str) p->re_compiled.allocated = 0; p->re_compiled.fastmap = p->fastmap; p->re_compiled.translate = NULL; + re_syntax_options = RE_SYNTAX_POSIX_BASIC & ~RE_CONTEXT_INVALID_DUP; err = re_compile_pattern (str + 1, len, &p->re_compiled); if (err) {