[PATCH] implement find -ipath
Rich Felker
dalias at aerifal.cx
Sun May 22 02:07:35 UTC 2011
On Sun, May 22, 2011 at 03:51:01AM +0200, Denys Vlasenko wrote:
> > - return fnmatch(ap->pattern, fileName, 0) == 0;
> > + return fnmatch(ap->pattern, fileName, (ap->ipath ? FNM_CASEFOLD : 0)) == 0;
FNM_CASEFOLD is a nonportable GNU feature. This should be made
optional, as this patch seems to break building busybox find against
musl.
Also, note that it's nearly impossible to implement case folding
fnmatch without just implementing fnmatch in terms of regex, due to
the complexity of Unicode case folding, so we have very good reason
for not supporting this nonstandard extension in musl...
Rich
More information about the busybox
mailing list