mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-13 20:00:08 +01:00
Allow use of --header option for cryptsetup close.
This can have perhpas only one use - checking that activated device has the same UUID.
This commit is contained in:
@@ -652,7 +652,7 @@ static int action_close(void)
|
|||||||
if (ARG_SET(OPT_CANCEL_DEFERRED_ID))
|
if (ARG_SET(OPT_CANCEL_DEFERRED_ID))
|
||||||
flags |= CRYPT_DEACTIVATE_DEFERRED_CANCEL;
|
flags |= CRYPT_DEACTIVATE_DEFERRED_CANCEL;
|
||||||
|
|
||||||
r = crypt_init_by_name(&cd, action_argv[0]);
|
r = crypt_init_by_name_and_header(&cd, action_argv[0], ARG_STR(OPT_HEADER_ID));
|
||||||
if (r == 0)
|
if (r == 0)
|
||||||
r = crypt_deactivate_by_name(cd, action_argv[0], flags);
|
r = crypt_deactivate_by_name(cd, action_argv[0], flags);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user