mirror of
https://github.com/curl/curl.git
synced 2026-06-09 21:24:16 +03:00
fixup the cwdcount
This commit is contained in:
parent
cd0200876f
commit
1fb2ddb34d
1 changed files with 5 additions and 3 deletions
|
|
@ -3081,13 +3081,15 @@ static CURLcode ftp_pp_statemachine(struct Curl_easy *data,
|
|||
else {
|
||||
/* success */
|
||||
ftpc->count2 = 0;
|
||||
if(++ftpc->cwdcount <= ftpc->dirdepth)
|
||||
if(ftpc->cwdcount >= ftpc->dirdepth)
|
||||
result = ftp_state_mdtm(data, ftpc, ftp);
|
||||
else {
|
||||
ftpc->cwdcount++;
|
||||
/* send next CWD */
|
||||
result = Curl_pp_sendf(data, &ftpc->pp, "CWD %.*s",
|
||||
pathlen(ftpc, ftpc->cwdcount - 1),
|
||||
pathpiece(ftpc, ftpc->cwdcount - 1));
|
||||
else
|
||||
result = ftp_state_mdtm(data, ftpc, ftp);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue