On Wednesday, April 2, 2008 at 23:09:52 +0200, Hrvoje Niksic wrote: > Micah Cowan <[EMAIL PROTECTED]> writes: >> It's hard for me to imagine an fnmatch that ignores FNM_PATHNAME
The libc 5.4.33 fnmatch() supports FNM_PATHNAME, and there is code apparently intending to return FNM_NOMATCH on a slash. But this code seems to be rather broken. >| printf("%d\n", fnmatch("foo*", "foo/bar", FNM_PATHNAME)); > It should print a non-zero value. Zero on the old system, FNM_NOMATCH on a recent one. Alain.