فهرست منبع

Prevent an assertion when creating a directory while uploading a file using protocol that does not support preserving permissions (like S3)

(cherry picked from commit 8a263b84ed22e69bce6ea09afef570f16de841da)

Source commit: ab73f45a339bbcc52207f7ded655e428f5eec200
Martin Prikryl 4 سال پیش
والد
کامیت
b839df5fe1
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      source/core/Terminal.cpp

+ 2 - 1
source/core/Terminal.cpp

@@ -4734,7 +4734,8 @@ void __fastcall TTerminal::CreateDirectory(const UnicodeString & DirName, const
   DoCreateDirectory(DirName, Encrypt);
 
   TValidProperties RemainingPropeties = Properties->Valid - (TValidProperties() << vpEncrypt);
-  if (!RemainingPropeties.Empty())
+  if (!RemainingPropeties.Empty() &&
+      (IsCapable[fcModeChanging] || IsCapable[fcOwnerChanging] || IsCapable[fcGroupChanging]))
   {
     DoChangeFileProperties(DirName, NULL, Properties);
   }