diff options
author | Bernie Innocenti <codewiz@google.com> | 2019-03-28 07:48:08 +0100 |
---|---|---|
committer | Bernie Innocenti <codewiz@google.com> | 2019-03-28 09:28:13 +0100 |
commit | 8bd6f455d261fa62a20321a426723c491903a82e (patch) | |
tree | 0864259080dd9934b15435fe4b3500b45485f895 /applypatch/applypatch.cpp | |
parent | Merge "Allow RSA 4096 key in package verification" (diff) | |
download | android_bootable_recovery-8bd6f455d261fa62a20321a426723c491903a82e.tar android_bootable_recovery-8bd6f455d261fa62a20321a426723c491903a82e.tar.gz android_bootable_recovery-8bd6f455d261fa62a20321a426723c491903a82e.tar.bz2 android_bootable_recovery-8bd6f455d261fa62a20321a426723c491903a82e.tar.lz android_bootable_recovery-8bd6f455d261fa62a20321a426723c491903a82e.tar.xz android_bootable_recovery-8bd6f455d261fa62a20321a426723c491903a82e.tar.zst android_bootable_recovery-8bd6f455d261fa62a20321a426723c491903a82e.zip |
Diffstat (limited to '')
-rw-r--r-- | applypatch/applypatch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applypatch/applypatch.cpp b/applypatch/applypatch.cpp index f9383ddeb..90d8e8604 100644 --- a/applypatch/applypatch.cpp +++ b/applypatch/applypatch.cpp @@ -76,7 +76,7 @@ static bool ReadPartitionToBuffer(const Partition& partition, FileContents* out, } android::base::unique_fd dev(open(partition.name.c_str(), O_RDONLY)); - if (!dev) { + if (dev == -1) { PLOG(ERROR) << "Failed to open eMMC partition \"" << partition << "\""; } else { std::vector<unsigned char> buffer(partition.size); |