summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libappfuse/tests/FuseBufferTest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libappfuse/tests/FuseBufferTest.cc b/libappfuse/tests/FuseBufferTest.cc
index db35d330d..1a1abd57e 100644
--- a/libappfuse/tests/FuseBufferTest.cc
+++ b/libappfuse/tests/FuseBufferTest.cc
@@ -31,7 +31,7 @@ namespace fuse {
31constexpr char kTempFile[] = "/data/local/tmp/appfuse_test_dump"; 31constexpr char kTempFile[] = "/data/local/tmp/appfuse_test_dump";
32 32
33void OpenTempFile(android::base::unique_fd* fd) { 33void OpenTempFile(android::base::unique_fd* fd) {
34 fd->reset(open(kTempFile, O_CREAT | O_RDWR)); 34 fd->reset(open(kTempFile, O_CREAT | O_RDWR, 0600));
35 ASSERT_NE(-1, *fd) << strerror(errno); 35 ASSERT_NE(-1, *fd) << strerror(errno);
36 unlink(kTempFile); 36 unlink(kTempFile);
37 ASSERT_NE(-1, *fd) << strerror(errno); 37 ASSERT_NE(-1, *fd) << strerror(errno);