Index: fnmatch_loop.c =================================================================== RCS file: /cvs/glibc/libc/posix/fnmatch_loop.c,v retrieving revision 1.11 diff -u -r1.11 fnmatch_loop.c --- fnmatch_loop.c 2000/07/05 21:59:32 1.11 +++ fnmatch_loop.c 2000/07/26 08:29:27 @@ -415,10 +415,11 @@ return FNM_NOMATCH; else { - int is_seqval = 0; int is_range = 0; #ifdef _LIBC + int is_seqval = 0; + if (c == L('[') && *p == L('.')) { uint32_t nrules = @@ -850,7 +851,7 @@ return FNM_NOMATCH; /* It is a range. */ - if (cold <= fc && fc <= c) + if (cold <= fn && fn <= c) goto matched; #endif