commit | 4b447b91debda9c9a0e230cab9e140e356b2a305 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Tue Jun 26 15:03:38 2012 -0700 |
committer | Nick Kralevich <nnk@google.com> | Tue Jun 26 15:03:38 2012 -0700 |
tree | df6f200b93e6bbc5345d439a00e6d9a22fc9e406 | |
parent | 0cedfe09e5083a274a8c449ca52f735a177e1817 [diff] |
Add mode when open(O_CREAT) is used. When creating a new file using open(..., O_CREAT), it is an error to fail to specify a creation mode. If a mode is not specified, a random stack provided value is used as the "mode". This will become a compile error in a future Android change. Change-Id: I8635e8b69587ed107253870d991c3fcf563ca876