summaryrefslogtreecommitdiff
path: root/findutils/grep.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-04-08 10:52:28 +0000
committerDenis Vlasenko2007-04-08 10:52:28 +0000
commitbbd695d8010ab453a5a89ba6d7ebfe1a96b87b7d (patch)
tree98df39594da2e7f1fbe560aec04eeb09426947f0 /findutils/grep.c
parentca3484103e6b99d0c433988f2f809840d780d88b (diff)
downloadbusybox-bbd695d8010ab453a5a89ba6d7ebfe1a96b87b7d.zip
busybox-bbd695d8010ab453a5a89ba6d7ebfe1a96b87b7d.tar.gz
find: fix handling of -prune
recursive_actions: uppercase flag constants
Diffstat (limited to 'findutils/grep.c')
-rw-r--r--findutils/grep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index 370b753..2ca4a3a 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -336,9 +336,9 @@ static int grep_dir(const char *dir)
{
int matched = 0;
recursive_action(dir,
- /* recurse= */ action_recurse |
- /* followLinks= */ /* no. 0 | */
- /* depthFirst= */ action_depthFirst,
+ /* recurse=yes */ ACTION_RECURSE |
+ /* followLinks=no */
+ /* depthFirst=yes */ ACTION_DEPTHFIRST,
/* fileAction= */ file_action_grep,
/* dirAction= */ NULL,
/* userData= */ &matched,