diff options
author | Dehao Chen <dehao@google.com> | 2015-05-04 16:08:00 -0700 |
---|---|---|
committer | Dehao Chen <dehao@google.com> | 2015-05-04 16:08:00 -0700 |
commit | adc45b2517a336e152aaa8ffbf19a505547f7d77 (patch) | |
tree | f7239286e40a976e204caebd95cd2a0a5735de1e /perfprofd | |
parent | 1352b82d4aed6b5dd64cffaa2aefec0cfd45aeaa (diff) | |
download | extras-adc45b2517a336e152aaa8ffbf19a505547f7d77.tar.gz |
Change the encoded file's mode to be readable by GMS core.
Bug: 19483574
Change-Id: Iee89138520a657df9a02bc98217c311d8c5a9262
Diffstat (limited to 'perfprofd')
-rw-r--r-- | perfprofd/perfprofdcore.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perfprofd/perfprofdcore.cc b/perfprofd/perfprofdcore.cc index 69db2088..f77fa578 100644 --- a/perfprofd/perfprofdcore.cc +++ b/perfprofd/perfprofdcore.cc @@ -555,6 +555,8 @@ PROFILE_RESULT encode_to_proto(const std::string &data_file_path, return ERR_WRITE_ENCODED_FILE_FAILED; } fclose(fp); + chmod(encoded_file_path.c_str(), + S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH); return OK_PROFILE_COLLECTION; } |