mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-18 14:20:09 +01:00
Remove redundant check for key file.
Semantically same check is in tools_get_key routine.
This commit is contained in:
committed by
Milan Broz
parent
53dcee6176
commit
103fa8fa2c
@@ -1354,7 +1354,7 @@ static int action_luksAddKey(void)
|
|||||||
r = tools_get_key(_("Enter new passphrase for key slot: "),
|
r = tools_get_key(_("Enter new passphrase for key slot: "),
|
||||||
&password_new, &password_new_size,
|
&password_new, &password_new_size,
|
||||||
opt_new_keyfile_offset, opt_new_keyfile_size, opt_new_key_file,
|
opt_new_keyfile_offset, opt_new_keyfile_size, opt_new_key_file,
|
||||||
opt_timeout, _verify_passphrase(1), opt_new_key_file ? 0 : 1, cd);
|
opt_timeout, _verify_passphrase(1), 1, cd);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user