Tweak mkdir permissions.
It will use system umask for safety anyway. And ignore user's decision is evil.
This commit is contained in:
parent
67332bc991
commit
b028c38dd3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user