FTP Bug: wrong dir listing because libcurl remembers wrong CWD #1782
I think this is caused by the changes in:
Steps to reproduce:
The easy handle is then reused, but this time using CURLFTPMETHOD_NOCWD, also passing /subfolder as CURLOPT_URL.
Consequence: ftpc->cwddone = TRUE; will be set, which is incorrect for CURLFTPMETHOD_NOCWD, which is supposed to operate on the ftp entry path.
As a result, the CURLFTPMETHOD_NOCWD + "MLSD subfolder" will not find any results, because the working dir is alreay at /subfolder! (consider CURLOPT_CUSTOMREQUEST MLSD)
The text was updated successfully, but these errors were encountered:
Fixes #1782 Reported-by: Peter Lamare