Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe6014ec authored by Tianjie Xu's avatar Tianjie Xu Committed by android-build-merger
Browse files

Fix a typo when comparing the verity mode

am: 4bbe0c93

Change-Id: I734ac0c1124e2459bb64defe16386ee1ee1c534f
parents 6c0a2dec 4bbe0c93
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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) {