From 34cc6c91a286411a8275d9d61aa80397fe1e5fa3 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 28 Aug 2014 15:50:09 +0200 Subject: grep: fix "grep -r PATTRN SYMLINK_TO_DIR" Signed-off-by: Denys Vlasenko --- findutils/grep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'findutils/grep.c') 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, -- cgit v1.2.3