[fpc-devel]UnixUtil.FNMatch bug

2004-05-06 Thread Michalis Kamburelis
Hi I found some bugs in UnixUtil.FNMatch function. In short, patterns like '*~' matched anything (instead of matching only filenames ending with '~'). I'm attaching patch "unixutil.patch" that fixes these issues. I'm also attaching a test program, "fnmatch_test.pas", so you can see that these

[fpc-devel]UnixUtil.FNMatch bug - new patch version

2004-05-06 Thread Michalis Kamburelis
Hi again, Previous patch still missed to correct some bugs (those we're still bugs in original FNMatch code, not new bugs introduced by my fixes, in case you might ask...). '*o' should not match 'blah.ow' and '*o' should not match 'fox' Anyway, I'm attaching new version of the patch (unixut