]> granicus.if.org Git - curl/commit
fnmatch: use the system one if available
authorDaniel Stenberg <daniel@haxx.se>
Thu, 31 May 2018 13:57:54 +0000 (15:57 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 1 Jun 2018 10:29:21 +0000 (12:29 +0200)
commita115c6bbe73175ad6157fce67338d4a18ed768b2
tree96ebcf5ff201b42740454ece0e6049a37f17d403
parent6d8c6289122dad7f0a05b6363d8e3c2cc73d096a
fnmatch: use the system one if available

If configure detects fnmatch to be available, use that instead of our
custom one for FTP wildcard pattern matching. For standard compliance,
to reduce our footprint and to use already well tested and well
exercised code.

A POSIX fnmatch behaves slightly different than the internal function
for a few test patterns currently and the macOS one yet slightly
different. Test case 1307 is adjusted for these differences.

Closes #2626
configure.ac
lib/curl_fnmatch.c
tests/unit/unit1307.c