Fix previous commit (for now).

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@400 36d66b0a-2a48-0410-832c-cd162a569da5
This commit is contained in:
Milan Broz
2010-12-09 18:25:31 +00:00
parent 68c2ac1087
commit 4b0e7ae41d

View File

@@ -204,7 +204,8 @@ static int action_create(int arg)
if (params.hash && !strcmp(params.hash, "plain"))
params.hash = NULL;
if (opt_key_file)
/* FIXME: temporary hack */
if (opt_key_file && strcmp(opt_key_file, "-"))
params.hash = NULL;
r = crypt_parse_name_and_mode(opt_cipher ?: DEFAULT_CIPHER(PLAIN),