mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-16 13:20:11 +01:00
Silent crypt_volume_key_verify call.
And moves the error message in tools instead.
This commit is contained in:
committed by
Milan Broz
parent
c67db10c22
commit
cc107ee20e
@@ -1797,6 +1797,8 @@ static int action_luksAddKey(void)
|
||||
goto out;
|
||||
|
||||
r = crypt_volume_key_verify(cd, key, keysize);
|
||||
if (r == -EPERM)
|
||||
log_err(_("Volume key does not match the volume."));
|
||||
check_signal(&r);
|
||||
if (r < 0)
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user