From 5b70982c042f8f242fb362ebb0adfe9a5b443ba5 Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Tue, 18 Apr 2017 21:56:02 -0700 Subject: [PATCH] Fix permissions when creating files on linux --- src/platform_linux.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform_linux.cc b/src/platform_linux.cc index bb29c707..d9969e45 100644 --- a/src/platform_linux.cc +++ b/src/platform_linux.cc @@ -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;