commit | 9798825a05a606b2d77fe9e918fda1e5ec981b62 | [log] [tgz] |
---|---|---|
author | Sami Tolvanen <samitolvanen@google.com> | Thu Aug 02 11:13:15 2018 -0700 |
committer | Sami Tolvanen <samitolvanen@google.com> | Fri Aug 03 08:12:25 2018 -0700 |
tree | a742939d2c6bcb88893991990cce753062899e51 | |
parent | 1b184b4451cc991893dbbf16c1f610329448c0ff [diff] |
libfec: fix a check for read-only mode O_RDONLY is defined as zero, which makes the test for it incorrect. As we don't allow O_WRONLY when opening files, it's sufficient to test for O_RDWR instead. Bug: 112147169 Test: tested that corrupt zero blocks are not read without O_RDWR Change-Id: I2328cda4285f4c9daf98dffa2a6602c9db5ad539