Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d1dc508 authored by George Burgess IV's avatar George Burgess IV Committed by android-build-merger
Browse files

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

am: c33ba01a

Change-Id: Ib92ab3987de5a3bafdfef36592aeead9988a65d5
parents 41aa8f07 c33ba01a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);