diff options
author | Tianjie Xu <xunchang@google.com> | 2016-07-15 02:09:36 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-07-15 02:09:36 +0200 |
commit | 4549a5e20f916a203ac7a0ad9e8e4f059a570552 (patch) | |
tree | 42028e9606df646fdc412e8a269aaa0d57e1f64c | |
parent | Merge \\"Touch blocks in care_map in update_verifier\\" into nyc-mr1-dev am: 13f44939b1 (diff) | |
parent | Fix a typo when comparing the verity mode (diff) | |
download | android_bootable_recovery-4549a5e20f916a203ac7a0ad9e8e4f059a570552.tar android_bootable_recovery-4549a5e20f916a203ac7a0ad9e8e4f059a570552.tar.gz android_bootable_recovery-4549a5e20f916a203ac7a0ad9e8e4f059a570552.tar.bz2 android_bootable_recovery-4549a5e20f916a203ac7a0ad9e8e4f059a570552.tar.lz android_bootable_recovery-4549a5e20f916a203ac7a0ad9e8e4f059a570552.tar.xz android_bootable_recovery-4549a5e20f916a203ac7a0ad9e8e4f059a570552.tar.zst android_bootable_recovery-4549a5e20f916a203ac7a0ad9e8e4f059a570552.zip |
Diffstat (limited to '')
-rw-r--r-- | update_verifier/update_verifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/update_verifier/update_verifier.cpp b/update_verifier/update_verifier.cpp index f89eb5a64..53e5efe54 100644 --- a/update_verifier/update_verifier.cpp +++ b/update_verifier/update_verifier.cpp @@ -160,9 +160,9 @@ int main(int argc, char** argv) { if (property_get("ro.boot.veritymode", verity_mode, "") == -1) { SLOGE("Failed to get dm-verity mode"); return -1; - } else if (strcmp(verity_mode, "EIO") == 0) { + } else if (strcasecmp(verity_mode, "eio") == 0) { // We shouldn't see verity in EIO mode if the current slot hasn't booted - // successfully before. Therefore, fail the verification when veirtymode=EIO. + // successfully before. Therefore, fail the verification when veritymode=eio. SLOGE("Found dm-verity in EIO mode, skip verification."); return -1; } else if (strcmp(verity_mode, "enforcing") != 0) { |