From: Paul Eggert Date: Wed, 12 Apr 2006 07:15:21 +0000 (+0000) Subject: (build_type_arg): Set re_syntax_options to a value that is compatible X-Git-Tag: v6.0~512 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fd9c6f98e568a360a5378d033e0c5859b20de8d;p=thirdparty%2Fcoreutils.git (build_type_arg): Set re_syntax_options to a value that is compatible with what POSIX requires. --- diff --git a/src/nl.c b/src/nl.c index f17f7149a7..7aad2e8f24 100644 --- a/src/nl.c +++ b/src/nl.c @@ -253,6 +253,7 @@ build_type_arg (char **typep, struct re_pattern_buffer *regexp, char *fastmap) regexp->allocated = 0; regexp->fastmap = fastmap; regexp->translate = NULL; + re_syntax_options = RE_SYNTAX_POSIX_BASIC & ~RE_CONTEXT_INVALID_DUP; errmsg = re_compile_pattern (optarg, strlen (optarg), regexp); if (errmsg) error (EXIT_FAILURE, 0, "%s", errmsg);