]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 27 Oct 2001 00:38:28 +0000 (00:38 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 27 Oct 2001 00:38:28 +0000 (00:38 +0000)
* posix/fnmatch_loop.c: Recognize - at end of bracket expression
correctly.

ChangeLog
posix/fnmatch_loop.c

index 90bdec7a144535d3c52bb8d18f0713a0aed85ebf..d34f0e0fa195293850b48770b391c80ff02d2cfa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
 
+       * posix/fnmatch_loop.c: Recognize - at end of bracket expression
+       correctly.
+
        * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
        nrules value.
 
index 4c6168ae9fe44db73e3c7e4df7210a90ac2acff3..8bdd9a6063c2356705b5990ed20efefa3c39c0cc 100644 (file)
@@ -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;