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

Natanael Copa natanael.copa at gmail.com
Tue Apr 10 06:16:23 PDT 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.

Ah, ok.. ofcourse... Thanks.

Do you want me to send a new patch? I use perror only one place.

Natanael Copa



More information about the busybox mailing list