Fix error message for luksClose and detached LUKS header.

Allow --header for status command to get full info with detached header.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@689 36d66b0a-2a48-0410-832c-cd162a569da5
This commit is contained in:
Milan Broz
2011-11-13 22:12:51 +00:00
parent b4e2306da8
commit 203f2e082d
5 changed files with 44 additions and 16 deletions

View File

@@ -408,7 +408,8 @@ static int action_status(int arg __attribute__((unused)))
else
log_std("%s/%s is active%s.\n", crypt_get_dir(), action_argv[0],
ci == CRYPT_BUSY ? " and is in use" : "");
r = crypt_init_by_name(&cd, action_argv[0]);
r = crypt_init_by_name_and_header(&cd, action_argv[0], opt_header_device);
if (r < 0 || !crypt_get_type(cd))
goto out;