Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
76bda724fa
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  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