Browse Source

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 years ago
parent
commit
acfbf75801
1 changed files with 4 additions and 0 deletions
  1. 4 0
      source/core/Script.cpp

+ 4 - 0
source/core/Script.cpp

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