diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2019-05-26 18:52:15 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2019-05-26 18:52:15 +0000 |
commit | be203deb1c6ff8d2e6d7365030d8ad8f133e9589 (patch) | |
tree | cb2f0681e4d14b34a96ebdced05ae5f82a6d4550 | |
parent | f9165a4f2bb2f86c5b381ffa263f8ac35d69756b (diff) | |
download | ports-be203deb1c6ff8d2e6d7365030d8ad8f133e9589.tar.gz ports-be203deb1c6ff8d2e6d7365030d8ad8f133e9589.zip |
MFH: r502732
Fix build with FTP disabled
Obtained from: https://github.com/curl/curl/commit/dc0a671213fa94489933755828b26f5807d61a7a
Reported by: Charlie Li <ml+freebsd@vishwin.info>
Approved by: ports-secteam (blanket)
Notes
Notes:
svn path=/branches/2019Q2/; revision=502743
-rw-r--r-- | ftp/curl/files/patch-lib-url.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ftp/curl/files/patch-lib-url.c b/ftp/curl/files/patch-lib-url.c index 770a9ca50b38..32de0d5a4a3c 100644 --- a/ftp/curl/files/patch-lib-url.c +++ b/ftp/curl/files/patch-lib-url.c @@ -5,6 +5,15 @@ Last-Update: 2010-12-18 --- lib/url.c.orig 2019-05-21 17:57:39 UTC +++ lib/url.c +@@ -439,7 +439,7 @@ CURLcode Curl_init_userdefined(struct Cu + + set->httpreq = HTTPREQ_GET; /* Default HTTP request */ + set->rtspreq = RTSPREQ_OPTIONS; /* Default RTSP request */ +-#ifndef CURL_DISABLE_FILE ++#ifndef CURL_DISABLE_FTP + set->ftp_use_epsv = TRUE; /* FTP defaults to EPSV operations */ + set->ftp_use_eprt = TRUE; /* FTP defaults to EPRT operations */ + set->ftp_use_pret = FALSE; /* mainly useful for drftpd servers */ @@ -552,6 +552,10 @@ CURLcode Curl_init_userdefined(struct Cu CURL_HTTP_VERSION_1_1 #endif |