| Index: base/files/file_util_posix.cc
|
| diff --git a/base/files/file_util_posix.cc b/base/files/file_util_posix.cc
|
| index 561f5c7e6615ac45fcd7e44ea35ab9a4343bc4a8..9c6b3a24b4c09f373e0c8354a24b80a1cceafcab 100644
|
| --- a/base/files/file_util_posix.cc
|
| +++ b/base/files/file_util_posix.cc
|
| @@ -321,7 +321,9 @@ bool CopyDirectory(const FilePath& from_path,
|
| }
|
|
|
| if (S_ISDIR(from_stat.st_mode)) {
|
| - if (mkdir(target_path.value().c_str(), from_stat.st_mode & 01777) != 0 &&
|
| + if (mkdir(target_path.value().c_str(),
|
| + (from_stat.st_mode & 01777) | S_IRUSR | S_IXUSR | S_IWUSR) !=
|
| + 0 &&
|
| errno != EEXIST) {
|
| DLOG(ERROR) << "CopyDirectory() couldn't create directory: "
|
| << target_path.value() << " errno = " << errno;
|
|
|