mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-11-23 23:10:57 +07:00
cryptsetup: fix inverted comparison in pass_volume_key
This commit is contained in:
parent
e4f44e734c
commit
8db9d8c2a4
@ -468,7 +468,8 @@ int main(int argc, char *argv[]) {
|
||||
opt_keyfile_size,
|
||||
¶ms);
|
||||
|
||||
pass_volume_key = !!hash;
|
||||
/* hash == NULL implies the user passed "plain" */
|
||||
pass_volume_key = (hash == NULL);
|
||||
}
|
||||
|
||||
if (k < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user