From: Sasha Khapyorsky <sashak@voltaire.com>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: [PATCH] http/ftp: optionally ask curl to not use EPSV command
Date: Thu, 28 Sep 2006 22:26:05 +0300 [thread overview]
Message-ID: <20060928192605.GD10617@sashak.voltaire.com> (raw)
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
next reply other threads:[~2006-09-28 19:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-28 19:26 Sasha Khapyorsky [this message]
2006-09-28 21:25 ` [PATCH] http/ftp: optionally ask curl to not use EPSV command 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060928192605.GD10617@sashak.voltaire.com \
--to=sashak@voltaire.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).