mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-14 12:20:00 +01:00
Do not allow --persistent and --test-passphrase.
This commit is contained in:
committed by
Milan Broz
parent
515eff269c
commit
f6cb8e4118
@@ -2240,6 +2240,11 @@ int main(int argc, const char **argv)
|
||||
_("Option --persistent is allowed only for open operation.\n"),
|
||||
poptGetInvocationName(popt_context));
|
||||
|
||||
if (opt_persistent && opt_test_passphrase)
|
||||
usage(popt_context, EXIT_FAILURE,
|
||||
_("Option --persistent is not allowed with --test-passphrase.\n"),
|
||||
poptGetInvocationName(popt_context));
|
||||
|
||||
if (opt_key_size &&
|
||||
strcmp(aname, "luksFormat") &&
|
||||
strcmp(aname, "open") &&
|
||||
|
||||
Reference in New Issue
Block a user