Index: util/test/scoped_temp_dir_test.cc |
diff --git a/util/test/scoped_temp_dir_test.cc b/util/test/scoped_temp_dir_test.cc |
index 7815405a267c54cf3b1bd181ea8206d27975639e..9701a69aa946db5771cec8a6554fe7e8ce12e65b 100644 |
--- a/util/test/scoped_temp_dir_test.cc |
+++ b/util/test/scoped_temp_dir_test.cc |
@@ -62,7 +62,7 @@ void CreateFile(const base::FilePath& path) { |
ASSERT_EQ(0, IGNORE_EINTR(close(fd))) |
<< ErrnoMessage("close") << " " << path.value(); |
#elif defined(OS_WIN) |
- int fd = _wcreat(path.value().c_str(), 0644); |
+ int fd = _wcreat(path.value().c_str(), _S_IREAD | _S_IWRITE); |
ASSERT_GE(fd, 0) << ErrnoMessage("_wcreat") << " " << path.value(); |
ASSERT_EQ(0, _close(fd)) << ErrnoMessage("_close") << " " << path.value(); |
#else |