bug in fnmatch...

Ben Collins bcollins@debian.org
Fri Oct 26 17:04:00 GMT 2001


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  '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'



More information about the Libc-alpha mailing list