Commit 683aa0ca authored by Marco Berzborn's avatar Marco Berzborn

Set permissions for makeDirectory (mkdir) to allow user and group

read/write/search access
parent 30e7e815
......@@ -50,8 +50,8 @@ bool isDirectory(const std::string& sPath) {
bool makeDirectory(const std::string& sPath) {
#if !defined(WIN32) && !defined(PLATFORM_X64)
// TODO: Mode?
return mkdir( sPath.c_str(), 0 ) == 0;
// Set permissions to read/write/search permissions for owner and group, and read/search permissions for others
return mkdir( sPath.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH ) == 0;
#else
return CreateDirectory( sPath.c_str(), NULL ) != 0;
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment