Fix find -follow support
authorIan Wienand <ianw@vmware.com>
Sun, 28 Aug 2011 04:53:20 +0000 (06:53 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 28 Aug 2011 04:53:20 +0000 (06:53 +0200)
Signed-off-by: Ian Wienand <ianw@vmware.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
findutils/find.c

index 05f88d2f0ca3f592c38c4008f39b5b243af42e0b..fc0fc5c9fc08ab39c6889967f487cf92adecec17 100644 (file)
@@ -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__);