Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 May 2019 18:52:15 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r502743 - branches/2019Q2/ftp/curl/files
Message-ID:  <201905261852.x4QIqFL8083201@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun May 26 18:52:15 2019
New Revision: 502743
URL: https://svnweb.freebsd.org/changeset/ports/502743

Log:
  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)

Modified:
  branches/2019Q2/ftp/curl/files/patch-lib-url.c
Directory Properties:
  branches/2019Q2/   (props changed)

Modified: branches/2019Q2/ftp/curl/files/patch-lib-url.c
==============================================================================
--- branches/2019Q2/ftp/curl/files/patch-lib-url.c	Sun May 26 18:34:42 2019	(r502742)
+++ branches/2019Q2/ftp/curl/files/patch-lib-url.c	Sun May 26 18:52:15 2019	(r502743)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905261852.x4QIqFL8083201>