mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Update.
* posix/fnmatch_loop.c: Recognize - at end of bracket expression correctly.
This commit is contained in:
@@ -592,7 +592,8 @@ FCT (pattern, string, string_end, no_leading_period, flags)
|
||||
/* We have to handling the symbols differently in
|
||||
ranges since then the collation sequence is
|
||||
important. */
|
||||
is_range = *p == L('-') && p[1] != L('\0');
|
||||
is_range = (*p == L('-') && p[1] != L('\0')
|
||||
&& p[1] != L(']'));
|
||||
|
||||
if (!is_range && c == fn)
|
||||
goto matched;
|
||||
|
||||
Reference in New Issue
Block a user