Fix loopaes open parameters.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@458 36d66b0a-2a48-0410-832c-cd162a569da5
This commit is contained in:
Milan Broz
2011-03-14 00:07:39 +00:00
parent e905a36561
commit 9ba3bb3a5e
2 changed files with 4 additions and 4 deletions

View File

@@ -273,7 +273,7 @@ static int action_loopaesOpen(int arg)
return -EINVAL;
}
if ((r = crypt_init(&cd, action_argv[1])))
if ((r = crypt_init(&cd, action_argv[0])))
goto out;
r = crypt_format(cd, CRYPT_LOOPAES, NULL, NULL, NULL, NULL,
@@ -281,7 +281,7 @@ static int action_loopaesOpen(int arg)
if (r < 0)
goto out;
r = crypt_activate_by_keyfile(cd, action_argv[0],
r = crypt_activate_by_keyfile(cd, action_argv[1],
CRYPT_ANY_SLOT, opt_key_file, 0,
opt_readonly ? CRYPT_ACTIVATE_READONLY : 0);
out: