ftp wildcard: a new option CURLOPT_FNMATCH_DATA

This commit is contained in:
Kamil Dudka 2010-05-16 02:49:08 +02:00
parent 027ceb37a1
commit 2ffe834bff
11 changed files with 27 additions and 10 deletions

View file

@ -330,7 +330,7 @@ static CURLcode ftp_pl_insert_finfo(struct connectdata *conn,
compare = Curl_fnmatch;
/* filter pattern-corresponding filenames */
if(compare(wc->pattern, finfo->filename) == 0) {
if(compare(conn->data->set.fnmatch_data, wc->pattern, finfo->filename) == 0) {
/* discard symlink which is containing multiple " -> " */
if((finfo->filetype == CURLFILETYPE_SYMLINK) &&
(strstr(finfo->strings.target, " -> "))) {