From f85aecbfcc007050090734fcce53b56dae9b7670 Mon Sep 17 00:00:00 2001 From: Thien-Thi Nguyen Date: Sat, 17 Jan 2009 13:51:50 +0100 Subject: find: Fix -regexptype parse specification bug: declare as POSOPT. --- ChangeLog | 7 +++++++ find/parser.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 55c96fc7..91b00722 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ +2009-04-10 Thien-Thi Nguyen + + Backport a fix from 4.5.x. + find: Fix -regexptype parse specification bug: declare as POSOPT. + * find/parser.c (parse_table): Parse -regextype as POSOPT. + 2009-04-10 Jim Meyering + Backport a fix from 4.5.x. * README-CVS: tiny typo fix (s/fileutils/findutils/). 2009-04-10 James Youngman diff --git a/find/parser.c b/find/parser.c index f40a92dc..de4ef240 100644 --- a/find/parser.c +++ b/find/parser.c @@ -306,7 +306,7 @@ static struct parser_table const parse_table[] = PARSE_ACTION ("quit", quit), /* GNU */ {ARG_TEST, "readable", parse_accesscheck, pred_readable}, /* GNU, 4.3.0+ */ PARSE_TEST ("regex", regex), /* GNU */ - PARSE_OPTION ("regextype", regextype), /* GNU */ + PARSE_POSOPT ("regextype", regextype), /* GNU */ PARSE_TEST ("samefile", samefile), /* GNU */ #if 0 PARSE_OPTION ("show-control-chars", show_control_chars), /* GNU, 4.3.0+ */ -- cgit v1.2.1