Fix permissions when creating files on linux

This commit is contained in:
Jacob Dufault 2017-04-18 21:56:02 -07:00
parent 85734278d8
commit 5b70982c04

View File

@ -149,7 +149,7 @@ std::string NormalizePath(const std::string& path) {
bool TryMakeDirectory(const std::string& absolute_path) {
std::cerr << "!! TryMakeDirectory " << absolute_path << std::endl;
const mode_t kMode = 0660; // UNIX style permissions, user and group read/write; other cannot access
const mode_t kMode = 0777; // UNIX style permissions
if (mkdir(absolute_path.c_str(), kMode) == -1) {
// Success if the directory exists.
return errno == EEXIST;