From: Ulrich Drepper Date: Wed, 26 Jul 2000 16:04:48 +0000 (+0000) Subject: Fixes for use outside glibc. X-Git-Tag: upstream/2.30~24992 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1ac11df763c49e7e9afb2993b172c0d575edd05;p=external%2Fglibc.git Fixes for use outside glibc. --- diff --git a/posix/fnmatch_loop.c b/posix/fnmatch_loop.c index b7baa7b..38cb8f1 100644 --- a/posix/fnmatch_loop.c +++ b/posix/fnmatch_loop.c @@ -415,10 +415,11 @@ FCT (pattern, string, no_leading_period, flags) 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 @@ FCT (pattern, string, no_leading_period, flags) return FNM_NOMATCH; /* It is a range. */ - if (cold <= fc && fc <= c) + if (cold <= fn && fn <= c) goto matched; #endif