commit | b64decdc7361c6c93bd91fdd016a50971c8e537a | [log] [tgz] |
---|---|---|
author | David Brazdil <dbrazdil@google.com> | Tue Aug 09 12:10:56 2016 +0100 |
committer | David Brazdil <dbrazdil@google.com> | Tue Aug 09 14:33:39 2016 +0100 |
tree | 66ce484619cabb75ccbc39e09a1f6a9307b21734 | |
parent | 51616fb233df2760fd6002a02dce692f24b93fb6 [diff] |
Fix setting FdFile::ReadOnlyMode() flag The Unix flag O_RDONLY is defined as zero and hence its presence cannot be tested with '(flags & O_RDONLY) != 0'. This used to be broken in FdFlag when setting its internal `read_only_mode_` flag. Test: m test-art-host-gtest-fd_file_test Change-Id: Ib48abfc908c7032f031450a1574130e06f6c3bab