This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
bug in fnmatch...
- To: GNU C Library <libc-alpha at sourceware dot cygnus dot com>
- Subject: bug in fnmatch...
- From: Ben Collins <bcollins at debian dot org>
- Date: Fri, 26 Oct 2001 20:04:13 -0400
I'm not too familiar with the code, so maybe someone can spot this
before I can. basically the following code does not work as expected:
fnmatch("[x-]", "x", 0)
This does work, however:
fnmatch("[x-]", "-", 0)
It seems both should match, as '-' in the pattern is not considered a
range, since it is the final character.
--
.----------=======-=-======-=========-----------=====------------=-=-----.
/ Ben Collins -- Debian GNU/Linux \
` bcollins@debian.org -- bcollins@openldap.org -- bcollins@linux.com '
`---=========------=======-------------=-=-----=-===-======-------=--=---'