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

Bernhard Fischer rep.dot.nop at gmail.com
Tue Apr 10 06:01:38 PDT 2007


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.


More information about the busybox mailing list