Core/Directory: Try to fix default directory permission

This commit is contained in:
Jérôme Leclercq 2017-11-29 16:09:46 +01:00
parent 45576f5691
commit a9fc553bd5
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ namespace Nz
bool DirectoryImpl::Create(const String& dirPath) bool DirectoryImpl::Create(const String& dirPath)
{ {
mode_t permissions = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH; // TODO: check permissions, no right to execute but read and write for every others. mode_t permissions = S_IRWXU | S_IRWXG | S_IRWXO; // 777
return mkdir(dirPath.GetConstBuffer(), permissions) != -1; return mkdir(dirPath.GetConstBuffer(), permissions) != -1;
} }