瀏覽代碼

Bug 2084: Do not list remote directory when downloading file using FTP protocol with overwrite confirmations off

https://winscp.net/tracker/2084
(cherry picked from commit ac251a73097f07d559fbc36b7e911a92ecdf60a3)

# Conflicts:
#	source/filezilla/FtpControlSocket.cpp

Source commit: 98cd5ca9ab7624dcd1d2e524722129f4b3d5b730
Martin Prikryl 3 年之前
父節點
當前提交
c89337f7ab
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      source/filezilla/FtpControlSocket.cpp

+ 1 - 5
source/filezilla/FtpControlSocket.cpp

@@ -3622,10 +3622,6 @@ void CFtpControlSocket::FileTransfer(t_transferfile *transferfile/*=0*/,BOOL bFi
         }
         else
         {
-          // Resetting transfersize here is pointless as we
-          // always provide valid size in call to FileTransfer.
-          // We unnecessary reply on the file being in the directory listing.
-          pData->transferdata.transfersize=-1;
           CString remotefile=pData->transferfile.remotefile;
           if (m_pDirectoryListing)
             for (int i=0; i<m_pDirectoryListing->num; i++)
@@ -6170,7 +6166,7 @@ void CFtpControlSocket::DiscardLine(CStringA line)
 int CFtpControlSocket::FileTransferListState(bool get)
 {
   int Result;
-  if (GetOptionVal(OPTION_MPEXT_NOLIST) && !get)
+  if (GetOptionVal(OPTION_MPEXT_NOLIST))
   {
     Result = FILETRANSFER_TYPE;
   }