From: John Marino Date: Sat, 29 Oct 2011 20:02:12 +0000 (+0200) Subject: diff: Remove location modification from 2004 X-Git-Tag: v3.0.0~778 X-Git-Url: https://gitweb.dragonflybsd.org/~nant/dragonfly.git/commitdiff_plain/683199bcec38256267164d6b8dd94a78df91af98 diff: Remove location modification from 2004 diffutils has been carrying this modification since version 2.8.1. That version was changed to support libgnuregex which has since been removed. It appears that likely libgnuregex didn't support the RE_NO_POSIX_BACKTRACKING option, and thus required the modification. --- diff --git a/contrib/diffutils/src/diff.c b/contrib/diffutils/src/diff.c index d576866831..c04ee53d42 100644 --- a/contrib/diffutils/src/diff.c +++ b/contrib/diffutils/src/diff.c @@ -282,7 +282,7 @@ main (int argc, char **argv) c_stack_action (0); function_regexp_list.buf = &function_regexp; ignore_regexp_list.buf = &ignore_regexp; - re_set_syntax (RE_SYNTAX_GREP); + re_set_syntax (RE_SYNTAX_GREP | RE_NO_POSIX_BACKTRACKING); excluded = new_exclude (); /* Decode the options. */