[PATCH] fix find -follow option

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


On Wednesday 24 August 2011 22:09, Ian Wienand wrote:
> Hi,
> 
> Commit [1] appears to have broken find -follow support; find reports
> the -follow option as unknown currently.
> 
> -i
> 
> [1] http://git.busybox.net/busybox/commit/?id=053c12e0de30afbc19019ffa9b0cb01edc44539f
> 
> ---
>  findutils/find.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
> 
> diff --git a/findutils/find.c b/findutils/find.c
> index 05f88d2..3816bd7 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;
> +		}
>  #if ENABLE_FEATURE_FIND_XDEV
>  		else if (parm == OPT_XDEV) {
>  			dbg("%d", __LINE__);

Applied, thanks!


More information about the busybox mailing list