commit | 6244806a628a24e95e389616aa849d96e1010e62 | [log] [tgz] |
---|---|---|
author | Matt Mower <mowerm@gmail.com> | Sun Feb 12 15:13:00 2017 -0600 |
committer | Dees Troy <dees_troy@teamw.in> | Thu Feb 16 05:19:59 2017 +0100 |
tree | 574a1e22bada4c00034a58ba8657c52784925b43 | |
parent | d1d3cb6ef02e339ec296936e3a9249c0d91efbd4 [diff] |
Fix bldr msg file open mode when offset specified It was pointed out to me by gmrt that O_APPEND is incorrect, as lseek before writing would be undone (perhaps we avoided this issue due to an inability to write beyond the end of a partition) and O_RDWR is not necessary to lseek. When AOSP switched from fopen to open, they also removed the full partition wipe (fopen in wb mode) before each write, so this is no longer an issue. Completely restore the original AOSP file access mode flags. Change-Id: I42b4efc5f499360ce5b761d3a2a5d4dac4cdfb65
Team Win Recovery Project (TWRP)
You can find a compiling guide here.