瀏覽代碼

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 年之前
父節點
當前提交
acfbf75801
共有 1 個文件被更改,包括 4 次插入0 次删除
  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)
 {
   CheckSession();
+  if (!FTerminal->IsCapable[fcSymbolicLink])
+  {
+    NotSupported();
+  }
 
   DebugAssert(Parameters->ParamCount == 2);