mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-13 20:00:08 +01:00
Fix retry if entered passphrases (with verify option) do not match.
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
2012-03-16 Milan Broz <mbroz@redhat.com>
|
2012-03-16 Milan Broz <mbroz@redhat.com>
|
||||||
* Unify password verification option.
|
* Unify password verification option.
|
||||||
* Support password verification with quiet flag if possible. (1.2.0)
|
* Support password verification with quiet flag if possible. (1.2.0)
|
||||||
|
* Fix retry if entered passphrases (with verify option) do not match.
|
||||||
|
|
||||||
2012-02-11 Milan Broz <mbroz@redhat.com>
|
2012-02-11 Milan Broz <mbroz@redhat.com>
|
||||||
* Add --master-key-file option to luksOpen (open using volume key).
|
* Add --master-key-file option to luksOpen (open using volume key).
|
||||||
|
|||||||
@@ -379,6 +379,9 @@ static int volume_key_by_terminal_passphrase(struct crypt_device *cd, int keyslo
|
|||||||
|
|
||||||
r = key_from_terminal(cd, NULL, &passphrase_read,
|
r = key_from_terminal(cd, NULL, &passphrase_read,
|
||||||
&passphrase_size_read, 0);
|
&passphrase_size_read, 0);
|
||||||
|
/* Continue if it is just passphrase verify mismatch */
|
||||||
|
if (r == -EPERM)
|
||||||
|
continue;
|
||||||
if(r < 0)
|
if(r < 0)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user