summaryrefslogtreecommitdiffstats
path: root/base/file_util_posix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/file_util_posix.cc')
-rw-r--r--base/file_util_posix.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
index 06f3c1a..ae296ca 100644
--- a/base/file_util_posix.cc
+++ b/base/file_util_posix.cc
@@ -214,8 +214,7 @@ bool CopyDirectory(const FilePath& from_path,
}
// Try creating the target dir, continuing on it if it exists already.
- // Rely on the user's umask to produce correct permissions.
- if (mkdir(target_path.value().c_str(), 0777) != 0) {
+ if (mkdir(target_path.value().c_str(), 0700) != 0) {
if (errno != EEXIST)
error = errno;
}
@@ -425,7 +424,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(), 0777) != 0)
+ if (mkdir(i->value().c_str(), 0700) != 0)
return false;
}
}