[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] fix find -follow option
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2011-08-28 4:53:45
Message-ID: 201108280653.45142.vda.linux () googlemail ! com
[Download RAW message or body]

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!
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic