]> SALOME platform Git repositories - tools/simanio.git/commitdiff
Salome HOME
change permission of the directory
authorbri <bri@opencascade.com>
Mon, 10 Feb 2014 14:20:32 +0000 (18:20 +0400)
committerbri <bri@opencascade.com>
Mon, 10 Feb 2014 14:20:32 +0000 (18:20 +0400)
src/SimanIO_Link.cxx

index 25b489976ffce01f23237a1b152d28fdd8ba7092..dd90295db6f26077b6a5aa1d9f3633244babdc1b 100644 (file)
@@ -111,6 +111,7 @@ SimanIO_Configuration SimanIO_Link::RetrieveConf()
   
   //Cretae the directories
   system(("mkdir -p " + aClientFileDir).c_str());
+  system(("chmod -R g+w " + aTmpDir + "/SimanSalome/").c_str());
   
   //Download the siman-salome.conf file
   ofstream outputStream;
@@ -167,7 +168,9 @@ SimanIO_Configuration SimanIO_Link::RetrieveConf()
     }//aDocIter
   }//actIter
 
-
+  //delete the siman-salome.conf file.
+  system(("rm " + aClientFilePath).c_str());
+  
   //Delete objects
   delete aCreateConfigFileRequest;
   delete aCreateConfigFileResponse;