aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Wienand <ianw@vmware.com>2011-08-28 06:53:20 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-08-28 06:53:20 +0200
commitabc33ac8b24d2d733aba63ae19e2df6e7da16ec8 (patch)
tree304095be5e098856948ca29335ace7b2a2b62ab5
parent24915117a284c5536c9c707fc34ec9e7bf331f32 (diff)
downloadbusybox-abc33ac8b24d2d733aba63ae19e2df6e7da16ec8.tar.gz
Fix find -follow support
Signed-off-by: Ian Wienand <ianw@vmware.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--findutils/find.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/findutils/find.c b/findutils/find.c
index 05f88d2f0..fc0fc5c9f 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__);