Merge "Add permission bits to open() with O_CREAT." am: c33ba01a71

am: 7d1dc5083b

Change-Id: I1f8003d8276d7ed33e290548e3e52ee88cf5350b
This commit is contained in:
George Burgess IV 2017-02-10 02:14:09 +00:00 committed by android-build-merger
commit 035b27cc2f
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ namespace fuse {
constexpr char kTempFile[] = "/data/local/tmp/appfuse_test_dump";
void OpenTempFile(android::base::unique_fd* fd) {
fd->reset(open(kTempFile, O_CREAT | O_RDWR));
fd->reset(open(kTempFile, O_CREAT | O_RDWR, 0600));
ASSERT_NE(-1, *fd) << strerror(errno);
unlink(kTempFile);
ASSERT_NE(-1, *fd) << strerror(errno);