Ver Fonte

Bug 1716: When an ancestor directory cannot be read, its child files and subdirectories are incorrectly assumed to be encrypted

https://winscp.net/tracker/1716

Source commit: ef6dc8fa00c597078dac62937abf5633047e2c42
Martin Prikryl há 6 anos atrás
pai
commit
a9bacffb13
1 ficheiros alterados com 6 adições e 0 exclusões
  1. 6 0
      source/core/Terminal.cpp

+ 6 - 0
source/core/Terminal.cpp

@@ -7847,6 +7847,12 @@ TTerminal::TEncryptedFileNames::const_iterator __fastcall TTerminal::GetEncrypte
       {
       {
         throw;
         throw;
       }
       }
+
+      if (FEncryptedFileNames.find(Path) == FEncryptedFileNames.end())
+      {
+        FEncryptedFileNames.insert(std::make_pair(Path, Path));
+        LogEvent(2, FORMAT(L"Name of file '%s' assumed not to be encrypted", (Path)));
+      }
     }
     }
 
 
     FFoldersScannedForEncryptedFiles.insert(FileDir);
     FFoldersScannedForEncryptedFiles.insert(FileDir);