aboutsummaryrefslogtreecommitdiff
path: root/findutils/grep.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2014-08-28 15:50:09 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2014-08-28 15:50:09 +0200
commit34cc6c91a286411a8275d9d61aa80397fe1e5fa3 (patch)
tree2808db0f61e5e63dc390330c98ce5acd7cefea9a /findutils/grep.c
parent6ff055115798166e172039284448be758b04e195 (diff)
downloadbusybox-34cc6c91a286411a8275d9d61aa80397fe1e5fa3.tar.gz
grep: fix "grep -r PATTRN SYMLINK_TO_DIR"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'findutils/grep.c')
-rw-r--r--findutils/grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index f1b6dc694..b9621384e 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -668,7 +668,7 @@ static int grep_dir(const char *dir)
int matched = 0;
recursive_action(dir,
/* recurse=yes */ ACTION_RECURSE |
- /* followLinks=no */
+ /* followLinks=command line only */ ACTION_FOLLOWLINKS_L0 |
/* depthFirst=yes */ ACTION_DEPTHFIRST,
/* fileAction= */ file_action_grep,
/* dirAction= */ NULL,