-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FTP Bug: Curl sends "CWD /" despite CURLFTPMETHOD_NOCWD #1718
Labels
Comments
I think the condition needs an exception for |
bagder
added a commit
that referenced
this issue
Aug 3, 2017
... when reusing a connection. If it didn't do any CWD previously. Fixes #1718
bagder
added a commit
that referenced
this issue
Aug 3, 2017
... by doing two transfers in nocwd mode and check that there's no superfluous CWD command.
Merged
bagder
added a commit
that referenced
this issue
Aug 4, 2017
... when reusing a connection. If it didn't do any CWD previously. Fixes #1718
bagder
added a commit
that referenced
this issue
Aug 4, 2017
... by doing two transfers in nocwd mode and check that there's no superfluous CWD command.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Reproduce:
Set CURLFTPMETHOD_NOCWD and access different URLs reusing the same easy handle.
Consequence:
Killing the performance gain of reusing an easy handle by needless CWD round trips.
Fix:
The bug seems to be in src/lib/ftp.c ftp_parse_url_path():
it compares "ftpc->prevpath" with "data->state.path", and sets "ftpc->cwddone = TRUE" if equal.
This is obviously incorrect for CURLFTPMETHOD_NOCWD where the working directory is not set to state.path, instead it should compare "ftpc->prevpath" against ""
-Lama
The text was updated successfully, but these errors were encountered: