commit | 94c35d65cef74d6b330410be49dff1f18928f0cc | [log] [tgz] |
---|---|---|
author | Bernie Innocenti <codewiz@google.com> | Thu Mar 28 20:48:02 2019 +0900 |
committer | Bernie Innocenti <codewiz@google.com> | Thu Mar 28 20:48:02 2019 +0900 |
tree | 57d74137d2d1a12a6560043add8d3be3dfa0fca7 | |
parent | 632a01f74563551d5f2437fde39fa0475166350d [diff] |
Fix incorrect error checking on unique_fd The expression "!fd" calls the implicit conversion to int, but comparing the raw fd against 0 won't work, since open() and other POSIX calls returning file descriptors use -1 to signal an error. Test: m verity_verifier Change-Id: Ib117de62ff46c8d3389db54875bfa269fd539b51