commit | 6f9735b2037e1f84f51e9b97f0efec6f8eeeb414 | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Thu Aug 03 16:08:29 2017 -0700 |
committer | George Burgess IV <gbiv@google.com> | Thu Aug 03 16:14:11 2017 -0700 |
tree | a934b5ce5078c571016b8bef05c42f9a5b65bd6d | |
parent | 5e5c127511ffebd75874df67d8c92367c8d6f128 [diff] [blame] |
Remove useless mode bits Looks like a rebase of I099808fd13bf9ed9a564b122f1126b1691a83291 accidentally wiped out part of I5d9b98152e48135ea716592b28c5c771cc74018b. This reapplies the part that was undone. Bug: 64132680 Test: mma. Change-Id: If213996103c3988e8a609c266a59a2791675fd0a
diff --git a/cmds/incidentd/src/Section.cpp b/cmds/incidentd/src/Section.cpp index 8ef6817..37d5c6b 100644 --- a/cmds/incidentd/src/Section.cpp +++ b/cmds/incidentd/src/Section.cpp
@@ -119,7 +119,7 @@ status_t FileSection::Execute(ReportRequestSet* requests) const { // read from mFilename first, make sure the file is available // add O_CLOEXEC to make sure it is closed when exec incident helper - int fd = open(mFilename, O_RDONLY | O_CLOEXEC, 0444); + int fd = open(mFilename, O_RDONLY | O_CLOEXEC); if (fd == -1) { ALOGW("FileSection '%s' failed to open file", this->name.string()); return -errno;