Fix find -follow support

Signed-off-by: Ian Wienand <ianw@vmware.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Ian Wienand 2011-08-28 06:53:20 +02:00 committed by Denys Vlasenko
parent 24915117a2
commit abc33ac8b2

View 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__);