Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Revert file permission changes.
Browse files Browse the repository at this point in the history
Those should be in a separate PR.
  • Loading branch information
divegeek committed Apr 20, 2015
1 parent 0ba0a65 commit 536d0ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/keyczar/base/file_util_posix.cc
Expand Up @@ -57,7 +57,7 @@ FILE* OpenFile(const std::string& filename, const char* mode) {
}

int WriteFile(const std::string& filename, const char* data, int size) {
int fd = creat(filename.c_str(), 0600);
int fd = creat(filename.c_str(), 0666);
if (fd < 0)
return -1;

Expand Down Expand Up @@ -153,7 +153,7 @@ bool CreateDirectory(const FilePath& full_path) {
for (std::vector<FilePath>::reverse_iterator i = subpaths.rbegin();
i != subpaths.rend(); ++i) {
if (!DirectoryExists(*i)) {
if (mkdir(i->value().c_str(), 0700) != 0)
if (mkdir(i->value().c_str(), 0777) != 0)
return false;
}
}
Expand Down

0 comments on commit 536d0ef

Please sign in to comment.