mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0027901: Resource_Manager creates directory with insufficient permissions
Resource_Manager now sets RWXD permissions for the created directories to allow their removal. Method OSD_Directory::Build() will create intermediate directories if they do not exist yet. OSD_FileNode is corrected to clean error status in method Exists(). Tests bugs fclasses bug181_1 and bug181_2 are corrected to check existence of generated resource files; TODO is removed in bug181_2.
This commit is contained in:
@@ -252,7 +252,7 @@ Standard_Boolean Resource_Manager::Save() const
|
||||
{
|
||||
try {
|
||||
OCC_CATCH_SIGNALS
|
||||
Dir.Build(OSD_Protection(OSD_RX, OSD_RWX, OSD_RX, OSD_RX));
|
||||
Dir.Build(OSD_Protection(OSD_RX, OSD_RWXD, OSD_RX, OSD_RX));
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
Status = Standard_False;
|
||||
|
Reference in New Issue
Block a user