aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-04-05 20:59:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-04-05 20:59:12 +0000
commitee44eec3e1b60793888aacce966880e73f69eca6 (patch)
tree0f88632f511f1303b11a93b45cecfeed7ef6d2a9 /lib
parenteccd0d8e37501e5daa2a9d17dc75233d76ebf262 (diff)
Christophe Legry's fix to grok time-conditoned uploads
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 3967d119f..f91d2fd63 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -2820,7 +2820,8 @@ CURLcode Curl_ftp_done(struct connectdata *conn, CURLcode status)
if(data->set.upload) {
if((-1 != data->set.infilesize) &&
(data->set.infilesize != *ftp->bytecountp) &&
- !data->set.crlf) {
+ !data->set.crlf &&
+ !ftp->no_transfer)) {
failf(data, "Uploaded unaligned file size (%" FORMAT_OFF_T
" out of %" FORMAT_OFF_T " bytes)",
*ftp->bytecountp, data->set.infilesize);