From a9fc553bd5067b12dd9741d7b99f33702a924f27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Wed, 29 Nov 2017 16:09:46 +0100 Subject: [PATCH] Core/Directory: Try to fix default directory permission --- src/Nazara/Core/Posix/DirectoryImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nazara/Core/Posix/DirectoryImpl.cpp b/src/Nazara/Core/Posix/DirectoryImpl.cpp index 805a44232..e52328def 100644 --- a/src/Nazara/Core/Posix/DirectoryImpl.cpp +++ b/src/Nazara/Core/Posix/DirectoryImpl.cpp @@ -72,7 +72,7 @@ namespace Nz 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; }