1
0
Эх сурвалжийг харах

Bug fix: Scripting command ln does silently nothing when the server does not support creating symlinks, instead of reporting that.

Source commit: 3364b2e112c9b8811f73f659262ff1fbe1270c92
Martin Prikryl 7 жил өмнө
parent
commit
acfbf75801

+ 4 - 0
source/core/Script.cpp

@@ -1404,6 +1404,10 @@ void __fastcall TScript::ChModProc(TScriptProcParams * Parameters)
 void __fastcall TScript::LnProc(TScriptProcParams * Parameters)
 {
   CheckSession();
+  if (!FTerminal->IsCapable[fcSymbolicLink])
+  {
+    NotSupported();
+  }
 
   DebugAssert(Parameters->ParamCount == 2);