[git commit] Fix find -follow support

Denys Vlasenko vda.linux at googlemail.com
Sun Aug 28 04:53:20 UTC 2011


commit: http://git.busybox.net/busybox/commit/?id=abc33ac8b24d2d733aba63ae19e2df6e7da16ec8
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Ian Wienand <ianw at vmware.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 findutils/find.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/findutils/find.c b/findutils/find.c
index 05f88d2..fc0fc5c 100644
--- a/findutils/find.c
+++ b/findutils/find.c
@@ -932,7 +932,10 @@ static action*** parse_params(char **argv)
  * expression is reached.
  */
 		/* Options */
-		if (0) { }
+		if (parm == OPT_FOLLOW) {
+                        dbg("follow enabled: %d", __LINE__);
+                        G.recurse_flags |= ACTION_FOLLOWLINKS | ACTION_DANGLING_OK;
+		}
 #if ENABLE_FEATURE_FIND_XDEV
 		else if (parm == OPT_XDEV) {
 			dbg("%d", __LINE__);
-- 
1.7.3.4



More information about the busybox-cvs mailing list