git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] http/ftp: optionally ask curl to not use EPSV command
@ 2006-09-28 19:26 Sasha Khapyorsky
  2006-09-28 21:25 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Sasha Khapyorsky @ 2006-09-28 19:26 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

If GIT_CURL_FTP_NO_EPSV environment variable is defined, disable using
of EPSV ftp command (PASV will be used instead). This is helpful with
some "poor" ftp servers which doesn't support EPSV mode.

Signed-off-by: Sasha Khapyorsky <sashak@voltaire.com>
---
 http.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/http.c b/http.c
index 6c1937b..a966e6d 100644
--- a/http.c
+++ b/http.c
@@ -196,6 +196,9 @@ #endif
 
 	curl_easy_setopt(result, CURLOPT_USERAGENT, GIT_USER_AGENT);
 
+	if (getenv("GIT_CURL_FTP_NO_EPSV"))
+		curl_easy_setopt(result, CURLOPT_FTP_USE_EPSV, 0);
+
 	return result;
 }
 
-- 
1.4.2.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-10-03  9:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-28 19:26 [PATCH] http/ftp: optionally ask curl to not use EPSV command Sasha Khapyorsky
2006-09-28 21:25 ` Junio C Hamano
2006-09-29  0:07   ` Sasha Khapyorsky
2006-09-29  0:10     ` [PATCH v2] " Sasha Khapyorsky
2006-10-03  9:11       ` Jakub Narebski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).