bug in busybox find -prune?
Denis Vlasenko
vda.linux at googlemail.com
Sat Apr 7 13:35:00 PDT 2007
On Thursday 05 April 2007 16:59, Natanael Copa wrote:
> > > 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?
>
> Still has a bug:
> al-1.5 trunk # ./busybox_unstripped find * -prune -name 'f*'
> applets/.svn/format
> arch/.svn/format
> arch/i386/.svn/format
> archival/.svn/format
> archival/libunarchive/.svn/text-base/filter_accept_list.c.svn-base
> ...
>
> al-1.5 trunk # find * -prune -name 'f*'
> findutils
Please try this one. (patch and drop-in replacement are attached,
they are the same).
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6.patch
Type: text/x-diff
Size: 4678 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20070407/178eca56/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: find_fixed_prune2.c
Type: text/x-csrc
Size: 19338 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20070407/178eca56/attachment.c
More information about the busybox
mailing list