mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-14 12:20:00 +01:00
Fix loopaesOpen for keyfile on standard input.
The change in keyfile processing caused that special loopAES keyfiles are no longer read from stdin if key-file argument is "-". Fix it by using /dev/stdin in cryptsetup if "-" is detected. (The libcryptsetup API no longer parses spacial meaning of "-" internally). Fixes #364.
This commit is contained in:
@@ -271,8 +271,8 @@ static int action_open_loopaes(void)
|
||||
goto out;
|
||||
|
||||
r = crypt_activate_by_keyfile_device_offset(cd, action_argv[1], CRYPT_ANY_SLOT,
|
||||
opt_key_file, opt_keyfile_size,
|
||||
opt_keyfile_offset, activate_flags);
|
||||
tools_is_stdin(opt_key_file) ? "/dev/stdin" : opt_key_file, opt_keyfile_size,
|
||||
opt_keyfile_offset, activate_flags);
|
||||
out:
|
||||
crypt_free(cd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user