Browse Source

Not logging supported SFTP extensions included directly in SSH_FXP_VERSION response as unknown

Source commit: 867981901d8afd91db4d8a9e7c4f4089a5a07946
Martin Prikryl 2 years ago
parent
commit
4c64df473c
1 changed files with 7 additions and 0 deletions
  1. 7 0
      source/core/SftpFileSystem.cpp

+ 7 - 0
source/core/SftpFileSystem.cpp

@@ -3218,6 +3218,13 @@ void __fastcall TSFTPFileSystem::DoStartup()
         UnicodeString LimitsVersion = AnsiToString(ExtensionData);
         FTerminal->LogEvent(FORMAT(L"Supports %s extension version %s", (ExtensionName, LimitsVersion)));
       }
+      // See the comment in SupportsExtension
+      else if ((ExtensionName == SFTP_EXT_COPY_FILE) ||
+               (ExtensionName == SFTP_EXT_SPACE_AVAILABLE) ||
+               (ExtensionName == SFTP_EXT_CHECK_FILE))
+      {
+        FTerminal->LogEvent(FORMAT(L"Supports extension %s=%s", (ExtensionName, ExtensionDisplayData)));
+      }
       else
       {
         FTerminal->LogEvent(0, FORMAT(L"Unknown server extension %s=%s", (ExtensionName, ExtensionDisplayData)));