mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-14 12:20:00 +01:00
Drop duplicit check on --refresh option.
This commit is contained in:
committed by
Milan Broz
parent
c567d852a5
commit
6f45c7a8ac
@@ -3702,11 +3702,6 @@ int main(int argc, const char **argv)
|
|||||||
|
|
||||||
/* FIXME: rewrite this from scratch */
|
/* FIXME: rewrite this from scratch */
|
||||||
|
|
||||||
if (opt_refresh && strcmp(aname, "open"))
|
|
||||||
usage(popt_context, EXIT_FAILURE,
|
|
||||||
_("Parameter --refresh is only allowed with open or refresh commands."),
|
|
||||||
poptGetInvocationName(popt_context));
|
|
||||||
|
|
||||||
if (opt_refresh && opt_test_passphrase)
|
if (opt_refresh && opt_test_passphrase)
|
||||||
usage(popt_context, EXIT_FAILURE,
|
usage(popt_context, EXIT_FAILURE,
|
||||||
_("Options --refresh and --test-passphrase are mutually exclusive."),
|
_("Options --refresh and --test-passphrase are mutually exclusive."),
|
||||||
|
|||||||
Reference in New Issue
Block a user