aboutsummaryrefslogtreecommitdiff
path: root/posix/fnmatch_loop.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-09-02 03:38:10 +0000
committerUlrich Drepper <drepper@redhat.com>2004-09-02 03:38:10 +0000
commitaae95a1b6a1356ca2c6bc1f23a211c29da9e1ea4 (patch)
tree44e5ba2a4bd78fe5fc28cd8648505f521934f272 /posix/fnmatch_loop.c
parent495639394bc0d6fd9e7e093060b6bc1301d07842 (diff)
downloadglibc-aae95a1b6a1356ca2c6bc1f23a211c29da9e1ea4.tar
glibc-aae95a1b6a1356ca2c6bc1f23a211c29da9e1ea4.tar.gz
glibc-aae95a1b6a1356ca2c6bc1f23a211c29da9e1ea4.tar.bz2
glibc-aae95a1b6a1356ca2c6bc1f23a211c29da9e1ea4.zip
[BZ #361]
Update. 2004-09-01 Jakub Jelinek <jakub@redhat.com> [BZ #361] * posix/fnmatch_loop.c (FCT): For backslash between brackets, branch to normal_bracket after fetching the next character. * posix/tst-fnmatch.input: Add 25 new tests. Reported by Markus Oberhumer <markus@oberhumer.com>.
Diffstat (limited to 'posix/fnmatch_loop.c')
-rw-r--r--posix/fnmatch_loop.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/posix/fnmatch_loop.c b/posix/fnmatch_loop.c
index 0c14d45db7..fb56bd426b 100644
--- a/posix/fnmatch_loop.c
+++ b/posix/fnmatch_loop.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,1992,1993,1996,1997,1998,1999,2000,2001,2003
+/* Copyright (C) 1991,1992,1993,1996,1997,1998,1999,2000,2001,2003,2004
Free Software Foundation, Inc.
This file is part of the GNU C Library.
@@ -242,8 +242,7 @@ FCT (pattern, string, string_end, no_leading_period, flags)
c = FOLD ((UCHAR) *p);
++p;
- if (c == fn)
- goto matched;
+ goto normal_bracket;
}
else if (c == L('[') && *p == L(':'))
{