mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 10:50:01 +01:00
Fix veritysetup exit code for bad root hash with FEC enabled.
If FEC was enabled, the error for bad root hash was replaced by error correction (datga were ok, only root hash was wrong). Do not run recovery test if root hash is incorrect.
This commit is contained in:
@@ -373,7 +373,7 @@ out:
|
||||
log_err(cd, _("Verification of data area failed."));
|
||||
else {
|
||||
log_dbg(cd, "Verification of data area succeeded.");
|
||||
r = memcmp(root_hash, calculated_digest, digest_size) ? -EPERM : 0;
|
||||
r = memcmp(root_hash, calculated_digest, digest_size) ? -EINVAL : 0;
|
||||
if (r)
|
||||
log_err(cd, _("Verification of root hash failed."));
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user