From 7fd883616c4f7b80237db27b80deda59d861631b Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Sun, 28 Jun 2015 17:53:55 +0000 Subject: - Fix multi handles - Bump PORTREVISION for package change PR: 201147 Submitted by: grembo Obtained from: https://github.com/bagder/curl/commit/903b6e05565bf826b4194447864288642214b094 --- ftp/curl/Makefile | 2 +- ftp/curl/files/patch-lib-multi.c | 16 ++++++++++++++++ ftp/curl/files/patch-lib-transfer.c | 16 ++++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 ftp/curl/files/patch-lib-multi.c create mode 100644 ftp/curl/files/patch-lib-transfer.c (limited to 'ftp') diff --git a/ftp/curl/Makefile b/ftp/curl/Makefile index 712c27d2fdba..cd915386b6c0 100644 --- a/ftp/curl/Makefile +++ b/ftp/curl/Makefile @@ -3,7 +3,7 @@ PORTNAME= curl PORTVERSION= 7.43.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= ftp www MASTER_SITES= http://curl.haxx.se/download/ \ LOCAL/sunpoet diff --git a/ftp/curl/files/patch-lib-multi.c b/ftp/curl/files/patch-lib-multi.c new file mode 100644 index 000000000000..49a9a6466c63 --- /dev/null +++ b/ftp/curl/files/patch-lib-multi.c @@ -0,0 +1,16 @@ +Obtained from: https://github.com/bagder/curl/commit/903b6e05565bf826b4194447864288642214b094 + +--- lib/multi.c.orig 2015-06-15 21:14:25 UTC ++++ lib/multi.c +@@ -402,11 +402,6 @@ CURLMcode curl_multi_add_handle(CURLM *m + /* Point to the multi's connection cache */ + data->state.conn_cache = &multi->conn_cache; + +- if(data->set.httpreq == HTTPREQ_PUT) +- data->state.infilesize = data->set.filesize; +- else +- data->state.infilesize = data->set.postfieldsize; +- + /* This adds the new entry at the 'end' of the doubly-linked circular + list of SessionHandle structs to try and maintain a FIFO queue so + the pipelined requests are in order. */ diff --git a/ftp/curl/files/patch-lib-transfer.c b/ftp/curl/files/patch-lib-transfer.c new file mode 100644 index 000000000000..c0507a87548a --- /dev/null +++ b/ftp/curl/files/patch-lib-transfer.c @@ -0,0 +1,16 @@ +Obtained from: https://github.com/bagder/curl/commit/903b6e05565bf826b4194447864288642214b094 + +--- lib/transfer.c.orig 2015-06-14 21:31:01 UTC ++++ lib/transfer.c +@@ -1315,6 +1315,11 @@ CURLcode Curl_pretransfer(struct Session + Curl_safefree(data->info.wouldredirect); + data->info.wouldredirect = NULL; + ++ if(data->set.httpreq == HTTPREQ_PUT) ++ data->state.infilesize = data->set.filesize; ++ else ++ data->state.infilesize = data->set.postfieldsize; ++ + /* If there is a list of cookie files to read, do it now! */ + if(data->change.cookielist) + Curl_cookie_loadfiles(data); -- cgit v1.2.3