Commit f6cb8e41 authored by Ondrej Kozina's avatar Ondrej Kozina Committed by Milan Broz

Do not allow --persistent and --test-passphrase.

parent 515eff26
......@@ -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") &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment