Merge "Add permission bits to open() with O_CREAT."
am: c33ba01a71
Change-Id: Ib92ab3987de5a3bafdfef36592aeead9988a65d5
This commit is contained in:
commit
7d1dc5083b
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ namespace fuse {
|
||||||
constexpr char kTempFile[] = "/data/local/tmp/appfuse_test_dump";
|
constexpr char kTempFile[] = "/data/local/tmp/appfuse_test_dump";
|
||||||
|
|
||||||
void OpenTempFile(android::base::unique_fd* fd) {
|
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);
|
ASSERT_NE(-1, *fd) << strerror(errno);
|
||||||
unlink(kTempFile);
|
unlink(kTempFile);
|
||||||
ASSERT_NE(-1, *fd) << strerror(errno);
|
ASSERT_NE(-1, *fd) << strerror(errno);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue