summaryrefslogtreecommitdiff
path: root/src/FtpNegotiationCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-05-21 12:22:04 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-05-21 12:22:04 +0000
commit47adbe618c85b437220588fa1f7d602e113f7875 (patch)
treeeab4b692e42875ddd2904570d87cce6d54de5b50 /src/FtpNegotiationCommand.cc
parent8f3cdfb2de7b63533fe95e5a5c24374105842784 (diff)
2010-05-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that FTP download may fail when control connection is reused. This happens because FTP server can offer different root directory for different account. If pooled connections has different root directory, then download will fail. * src/DownloadEngine.cc * src/DownloadEngine.h * src/FtpConnection.cc * src/FtpConnection.h * src/FtpFinishDownloadCommand.cc * src/FtpInitiateConnectionCommand.cc * src/FtpNegotiationCommand.cc
Diffstat (limited to 'src/FtpNegotiationCommand.cc')
-rw-r--r--src/FtpNegotiationCommand.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FtpNegotiationCommand.cc b/src/FtpNegotiationCommand.cc
index 9f89b6b2..d36e6326 100644
--- a/src/FtpNegotiationCommand.cc
+++ b/src/FtpNegotiationCommand.cc
@@ -806,7 +806,7 @@ void FtpNegotiationCommand::poolConnection() const
if(getOption()->getAsBool(PREF_FTP_REUSE_CONNECTION)) {
std::map<std::string, std::string> options;
options["baseWorkingDir"] = ftp->getBaseWorkingDir();
- e->poolSocket(req, isProxyDefined(), socket, options);
+ e->poolSocket(req, isProxyDefined(), ftp->getUser(), socket, options);
}
}