Patch to add the "-iname" option to find

Alexander Griesser alexander.griesser at lkh-vil.or.at
Thu Dec 6 09:07:13 UTC 2007


Hi!

I always wondered why the "-iname" option isn't supported by busybox's
find and as I'm using it heavily I've written a small patch to get it in.

I'm sure that this patch isn't optimal as it simply duplicates the
action function for the "-name" parameter, but I don't know of any
other way to do that. The significant change is to add the flag
FNM_CASEFOLD to the fnmatch function call.

Any objections?

ciao,
-- 
Alexander Griesser (Netzwerkadministration)
E-Mail: alexander.griesser at lkh-vil.or.at | Web: http://www.lkh-vil.or.at
KABEG LKH Villach | Nikolaigasse 43 | 9500 Villach
Tel.:   +43 4242 208 3061 | Fax.:   +43 4242 971 3061
-------------- next part --------------
A non-text attachment was scrubbed...
Name: find_-iname.diff
Type: text/x-patch
Size: 2560 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20071206/84245ba1/attachment-0002.bin 


More information about the busybox mailing list