commit | 609b7650634e8ed5feae64ce3549483bce94c8ca | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Tue Jan 31 22:46:46 2017 -0800 |
committer | George Burgess IV <gbiv@google.com> | Tue Jan 31 23:08:29 2017 -0800 |
tree | 23b30077c54225203b446e3a63914a7533c45c89 | |
parent | a284424d6cf9396e680e01dd86c50864d55365cf [diff] |
Add permission bits to open with O_CREAT. It's an error to pass open O_CREAT without giving it mode bits: https://linux.die.net/man/3/open Given that we never seem to do anything with the file but delete it, 0600 seems fine. Bug: 32073964 Test: Now builds with clang FORTIFY. Change-Id: Ia68463144b32475a470d39530a1fcaa0b52825ca