mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:13:36 +03:00
syncing with local edit
This commit is contained in:
parent
067a75e895
commit
26e8ccc631
15 changed files with 427 additions and 1066 deletions
24
lib/ftp.c
24
lib/ftp.c
|
|
@ -79,7 +79,7 @@
|
|||
#include "progress.h"
|
||||
#include "upload.h"
|
||||
#include "download.h"
|
||||
|
||||
#include "escape.h"
|
||||
|
||||
/* returns last node in linked list */
|
||||
static struct curl_slist *slist_get_last(struct curl_slist *list)
|
||||
|
|
@ -1014,6 +1014,28 @@ UrgError _ftp(struct UrlData *data,
|
|||
return URG_FTP_WRITE_ERROR;
|
||||
}
|
||||
|
||||
/* Send any post-transfer QUOTE strings? */
|
||||
if(data->postquote) {
|
||||
qitem = data->postquote;
|
||||
/* Send all QUOTE strings in same order as on command-line */
|
||||
while (qitem) {
|
||||
/* Send string */
|
||||
if (qitem->data) {
|
||||
sendf(data->firstsocket, data, "%s\r\n", qitem->data);
|
||||
|
||||
nread = GetLastResponse(data->firstsocket, buf, data);
|
||||
|
||||
if (buf[0] != '2') {
|
||||
failf(data, "QUOT string not accepted: %s",
|
||||
qitem->data);
|
||||
return URG_FTP_QUOTE_ERROR;
|
||||
}
|
||||
}
|
||||
qitem = qitem->next;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return URG_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue