diff options
author | Bernie Innocenti <codewiz@google.com> | 2019-03-28 21:31:54 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-03-28 21:31:54 -0700 |
commit | 943613af6cf3bf9cfae6c33bd90599c727704655 (patch) | |
tree | 728f59a1ef07770f19555de36ea20a7351836105 | |
parent | 44f0f660e22ac4903031ea802c852633ab7c2eba (diff) | |
parent | 497b2e27e02486b732fd045f9774ae0f58586da7 (diff) | |
download | extras-943613af6cf3bf9cfae6c33bd90599c727704655.tar.gz |
Merge "Fix incorrect error checking on unique_fd" am: d2515c56d4 am: 3a431be49b
am: 497b2e27e0
Change-Id: I08a266eb804324c5e03543a5e7782f03a37a84e0
-rw-r--r-- | verity/verity_verifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/verity/verity_verifier.cpp b/verity/verity_verifier.cpp index 036e85be..e770708f 100644 --- a/verity/verity_verifier.cpp +++ b/verity/verity_verifier.cpp @@ -80,7 +80,7 @@ int main(int argc, char* argv[]) { // Get the raw image. android::base::unique_fd fd(open(argv[1], O_RDONLY)); - if (!fd) { + if (fd == -1) { fprintf(stderr, "failed to open %s: %s\n", argv[1], strerror(errno)); return 1; } |