mirror of
https://github.com/curl/curl.git
synced 2026-04-18 03:31:43 +03:00
ftp->dirs[] is no longer terminated with a zero entry but ftp->dirdepth
should be used
This commit is contained in:
parent
4f84e6d9e2
commit
592522ceaf
1 changed files with 1 additions and 1 deletions
|
|
@ -2165,7 +2165,7 @@ CURLcode ftp_perform(struct connectdata *conn,
|
|||
|
||||
{
|
||||
int i; /* counter for loop */
|
||||
for (i=0; ftp->dirs[i]; i++) {
|
||||
for (i=0; i < ftp->dirdepth; i++) {
|
||||
/* RFC 1738 says empty components should be respected too, but
|
||||
that is plain stupid since CWD can't be used with an empty argument */
|
||||
if ((result = ftp_cwd_and_mkd(conn, ftp->dirs[i])) != CURLE_OK)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue