Loading cmds/incidentd/src/Section.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -122,7 +122,7 @@ status_t FileSection::Execute(ReportRequestSet* requests) const { // read from mFilename and pump buffer to incident_helper status_t err = NO_ERROR; int fd = open(mFilename, O_RDONLY, 0444); int fd = open(mFilename, O_RDONLY); if (fd == -1) { ALOGW("FileSection '%s' failed to open file", this->name.string()); return -errno; Loading cmds/incidentd/tests/FdBuffer_test.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -201,7 +201,7 @@ TEST_F(FdBufferTest, ReadInStreamEmpty) { TEST_F(FdBufferTest, ReadInStreamMoreThan4MB) { const std::string testFile = kTestDataPath + "morethan4MB.txt"; int fd = open(testFile.c_str(), O_RDONLY, 0444); int fd = open(testFile.c_str(), O_RDONLY); ASSERT_NE(fd, -1); int pid = fork(); ASSERT_TRUE(pid != -1); Loading Loading
cmds/incidentd/src/Section.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -122,7 +122,7 @@ status_t FileSection::Execute(ReportRequestSet* requests) const { // read from mFilename and pump buffer to incident_helper status_t err = NO_ERROR; int fd = open(mFilename, O_RDONLY, 0444); int fd = open(mFilename, O_RDONLY); if (fd == -1) { ALOGW("FileSection '%s' failed to open file", this->name.string()); return -errno; Loading
cmds/incidentd/tests/FdBuffer_test.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -201,7 +201,7 @@ TEST_F(FdBufferTest, ReadInStreamEmpty) { TEST_F(FdBufferTest, ReadInStreamMoreThan4MB) { const std::string testFile = kTestDataPath + "morethan4MB.txt"; int fd = open(testFile.c_str(), O_RDONLY, 0444); int fd = open(testFile.c_str(), O_RDONLY); ASSERT_NE(fd, -1); int pid = fork(); ASSERT_TRUE(pid != -1); Loading