bug in busybox find -prune?

Denis Vlasenko vda.linux at googlemail.com
Thu Apr 5 00:28:11 UTC 2007


On Wednesday 04 April 2007 19:34, Natanael Copa wrote:
> To reproduce:
> 
> ncopa at nc ~/wrk/src/busybox/svn/busybox $ ./busybox_unstripped find
> findutils/ -prune -name 'f*'
> findutils/.svn/text-base/find.c.svn-base
> findutils/.svn/format
> findutils/find.c
> findutils/find.o
> 
> Expected behaviour:
> 
> ncopa at nc ~/wrk/src/busybox/svn/busybox $ /usr/bin/find findutils/ -prune
> -name 'f*'
> findutils/a
> 
> I have no idea how to fix it.

Yup. Two bugs here... does attached version work for you?
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: find.c
Type: text/x-csrc
Size: 19077 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070405/d1a2d341/attachment-0002.c 


More information about the busybox mailing list