瀏覽代碼

Fixed gh-1743. ConfigMgr crashes opening file w/o permission

Add additional exception handling to catch
exceptions of type IErrnoException and pass
them up.

Signed-off-by: Gleb Aronsky <gleb.aronsky@lexisnexis.com>
Gleb Aronsky 13 年之前
父節點
當前提交
76bda724fa
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      esp/services/WsDeploy/WsDeployService.cpp

+ 5 - 0
esp/services/WsDeploy/WsDeployService.cpp

@@ -5936,6 +5936,11 @@ void CWsDeployFileInfo::initFileInfo(bool createOrOverwrite)
     if (modified && fileExists)
       saveEnvironment(NULL, NULL, err);
   }
+  catch (IErrnoException* e)
+  {
+    //Don't ignore file access exceptions
+    throw e;
+  }
   catch(IException* e)
   {
     //ignore any exceptions at this point like validation errors e.t.c