Browse Source

Bug 1518: Do not verify that final path after CWD FTP command matches requested path to allow better compatibility with atypical FTP servers

https://winscp.net/tracker/1518

Source commit: 8f557d4d2b693052bb9ba7e533699e26e20e6c68
Martin Prikryl 8 years ago
parent
commit
ce37006614
1 changed files with 1 additions and 17 deletions
  1. 1 17
      source/filezilla/FtpControlSocket.cpp

+ 1 - 17
source/filezilla/FtpControlSocket.cpp

@@ -3078,23 +3078,7 @@ void CFtpControlSocket::FileTransfer(t_transferfile *transferfile/*=0*/,BOOL bFi
         if (!ParsePwdReply(pData->rawpwd))
         if (!ParsePwdReply(pData->rawpwd))
           return;
           return;
 
 
-        if (m_pOwner->GetCurrentPath() != pData->transferfile.remotepath)
-        {
-          // More user-friendly message when the actual paths differ
-          if (m_pOwner->GetCurrentPath().GetPath() != pData->transferfile.remotepath.GetPath())
-          {
-            LogMessage(FZ_LOG_WARNING, L"Real path and requested remote path do not match: \"%s\"  \"%s\"", m_pOwner->GetCurrentPath().GetPath(), pData->transferfile.remotepath.GetPath());
-          }
-          else
-          {
-            LogMessage(FZ_LOG_WARNING, L"Real path and requested remote path do not match: \"%s\"  \"%s\"", m_pOwner->GetCurrentPath().GetSafePath(), pData->transferfile.remotepath.GetSafePath());
-          }
-          nReplyError = FZ_REPLY_CRITICALERROR;
-        }
-        else
-        {
-          m_Operation.nOpState = FileTransferListState(pData->transferfile.get);
-        }
+        m_Operation.nOpState = FileTransferListState(pData->transferfile.get);
       }
       }
       break;
       break;
     case FILETRANSFER_LIST_MODE:
     case FILETRANSFER_LIST_MODE: