[PATCH] UPDATE: support for optional -delete and -path in 'find'

Natanael Copa natanael.copa at gmail.com
Thu Apr 12 11:40:52 UTC 2007


On Tue, 2007-04-10 at 15:01 +0200, Bernhard Fischer wrote:
> On Tue, Apr 10, 2007 at 02:15:20PM +0200, Natanael Copa wrote:
> >Hi,
> >
> >Attached is a patch against current svn for optional support of the
> >-delete and -path option in the 'find' applet.
> >
> >For the record: The -delete option can be dangerous. Use at your own
> >risk. (its turned off by default)
> >
> >I was not sure about the use of perror(fileName) instead of
> >bb_perror_msg. 
> >
> >I was thinking of a more verbose message like:
> >
> >  bb_perror_msg("find: %s", fileName) 
> >
> >but it would end up bigger and perror(fileName) seems to be good enough.
> >
> >Comments?
> 
> bb_perror_msg is supposed to use "applet-name: " as prefix, so
> bb_perror_msg("%s", fileName); should do what you want.

Attached is same patch with bb_perror_msg() instead of perror().

Should apply to current svn

Natanael Copa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bb_find_delete+path.patch
Type: text/x-patch
Size: 3572 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070412/57ba6c10/attachment-0002.bin 


More information about the busybox mailing list