diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2019-03-31 00:30:35 +0100 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2019-03-31 00:30:35 +0100 |
commit | f50ec3b61ee8c5a5a720fcc968055618abcb8d1b (patch) | |
tree | e9f635bd39b426228247ae3cf528f17061a55629 /applypatch | |
parent | Snap for 5413448 from e7dd308591a6634a85211e2b9593fab1c90a0a37 to qt-release (diff) | |
parent | Merge changes Ibbe7084e,If584fc8a am: bb8f0fff17 am: effd4ca883 (diff) | |
download | android_bootable_recovery-f50ec3b61ee8c5a5a720fcc968055618abcb8d1b.tar android_bootable_recovery-f50ec3b61ee8c5a5a720fcc968055618abcb8d1b.tar.gz android_bootable_recovery-f50ec3b61ee8c5a5a720fcc968055618abcb8d1b.tar.bz2 android_bootable_recovery-f50ec3b61ee8c5a5a720fcc968055618abcb8d1b.tar.lz android_bootable_recovery-f50ec3b61ee8c5a5a720fcc968055618abcb8d1b.tar.xz android_bootable_recovery-f50ec3b61ee8c5a5a720fcc968055618abcb8d1b.tar.zst android_bootable_recovery-f50ec3b61ee8c5a5a720fcc968055618abcb8d1b.zip |
Diffstat (limited to 'applypatch')
-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); |