Re: [Bacula-users] Fnmatch difference between GNU and BSD versions

2007-09-04 Thread Rudolf Cejka
Kern Sibbald wrote (2007/09/04): > > - it is somewhat inherent from historic BSD 4.4 > > Lite sources. I looked at FreeBSD and NetBSD sources and they both look > > similar in the critical path. I will send a Problem Report for FreeBSD > > system and we will see. > > Good move. Please let me kno

Re: [Bacula-users] Fnmatch difference between GNU and BSD versions

2007-09-04 Thread Kern Sibbald
On Tuesday 04 September 2007 10:25, Rudolf Cejka wrote: > Kern Sibbald wrOTE (2007/09/03): > > fnmatch("a*b/*", "abbb/.x", FNM_PATHNAME|FNM_PERIOD) returns fail > > (i.e. FN_NOMATCH). > > and on my version of the BSD fnmatch.c it returns success. I could have > > Hello, I think that there is

Re: [Bacula-users] Fnmatch difference between GNU and BSD versions

2007-09-04 Thread Rudolf Cejka
Kern Sibbald wrOTE (2007/09/03): > fnmatch("a*b/*", "abbb/.x", FNM_PATHNAME|FNM_PERIOD) returns fail > (i.e. FN_NOMATCH). > and on my version of the BSD fnmatch.c it returns success. I could have Hello, I think that there is a bug in BSD :o/ I debugged your example and I think, that I und

[Bacula-users] Fnmatch difference between GNU and BSD versions

2007-09-03 Thread Kern Sibbald
Hello, You would think that wild cards (fnmatch) are well known and that they work the same on all systems. Apparently not. On GNU clib systems, fnmatch("a*b/*", "abbb/.x", FNM_PATHNAME|FNM_PERIOD) returns fail (i.e. FN_NOMATCH). and on my version of the BSD fnmatch.c it returns succes