| Index: base/files/file_util_posix.cc
|
| diff --git a/base/files/file_util_posix.cc b/base/files/file_util_posix.cc
|
| index 5a94cef661319e39b98ea10037113371b4a2d2ac..d86d9bcc7e94f2067b35ae74855d55a4d1bee290 100644
|
| --- a/base/files/file_util_posix.cc
|
| +++ b/base/files/file_util_posix.cc
|
| @@ -322,7 +322,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;
|
|
|