Tweak mkdir permissions.

It will use system umask for safety anyway. And ignore user's decision is evil.
This commit is contained in:
Deve 2020-07-05 23:27:16 +02:00
parent 67332bc991
commit b028c38dd3

View File

@ -914,7 +914,7 @@ bool FileManager::checkAndCreateDirectory(const std::string &path)
#if defined(WIN32) #if defined(WIN32)
bool error = _wmkdir(StringUtils::utf8ToWide(path).c_str()) != 0; bool error = _wmkdir(StringUtils::utf8ToWide(path).c_str()) != 0;
#else #else
bool error = mkdir(path.c_str(), 0755) != 0; bool error = mkdir(path.c_str(), 0777) != 0;
#endif #endif
return !error; return !error;
} // checkAndCreateDirectory } // checkAndCreateDirectory