grep: fix "grep -r PATTRN SYMLINK_TO_DIR"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user