findutils-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Findutils-patches] [PATCH 11/19] find: Fix -regexptype parse specificat


From: James Youngman
Subject: [Findutils-patches] [PATCH 11/19] find: Fix -regexptype parse specification bug: declare as POSOPT.
Date: Fri, 10 Apr 2009 23:53:08 +0100

From: Thien-Thi Nguyen <address@hidden>

---
 ChangeLog     |    7 +++++++
 find/parser.c |    2 +-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 55c96fc..91b0072 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
+2009-04-10  Thien-Thi Nguyen  <address@hidden>
+
+       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 <address@hidden>
 
+       Backport a fix from 4.5.x.
        * README-CVS: tiny typo fix (s/fileutils/findutils/).
 
 2009-04-10  James Youngman  <address@hidden>
diff --git a/find/parser.c b/find/parser.c
index f40a92d..de4ef24 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+ */
-- 
1.5.6.5





reply via email to

[Prev in Thread] Current Thread [Next in Thread]