]> granicus.if.org Git - curl/commit
fnmatch: pattern syntax can no longer fail
authorPatrick Monnerat <patrick@monnerat.net>
Tue, 30 Jan 2018 19:22:17 +0000 (20:22 +0100)
committerPatrick Monnerat <patrick@monnerat.net>
Wed, 31 Jan 2018 00:17:35 +0000 (01:17 +0100)
commitda5f4b1d84a6aef9ae35274a417f8fb3853a4a90
tree7573b573dece263b4da943b69a832288dfdb37b0
parentfcaa1826bd34c2a7ea7e71bfd2cfdcf5fe3506c1
fnmatch: pattern syntax can no longer fail

Whenever an expected pattern syntax rule cannot be matched, the
character starting the rule loses its special meaning and the parsing
is resumed:
- backslash at the end of pattern string matches itself.
- Error in [:keyword:] results in set containing :\[dekorwy.

Unit test 1307 updated for this new situation.

Closes #2273
lib/curl_fnmatch.c
tests/unit/unit1307.c