diff --git a/docs/v2.0.5-ReleaseNotes b/docs/v2.0.5-ReleaseNotes index 545f2e8c..907d5aa3 100644 --- a/docs/v2.0.5-ReleaseNotes +++ b/docs/v2.0.5-ReleaseNotes @@ -54,6 +54,9 @@ Changes since version 2.0.4 * Allows passphrase change for unbound keyslots. +* Fixes removed keyslot number in verbose message for luksKillSlot, + luksRemoveKey and erase command. + * Adds blkid scan when attempting to open a plain device and warn the user about existing device signatures in a ciphertext device. diff --git a/src/cryptsetup.c b/src/cryptsetup.c index e57456d5..c4872f5d 100644 --- a/src/cryptsetup.c +++ b/src/cryptsetup.c @@ -1288,7 +1288,7 @@ static int action_luksKillSlot(void) } r = crypt_keyslot_destroy(cd, opt_key_slot); - tools_keyslot_msg(r, REMOVED); + tools_keyslot_msg(opt_key_slot, REMOVED); out: crypt_free(cd); return r; @@ -1341,7 +1341,7 @@ static int action_luksRemoveKey(void) } r = crypt_keyslot_destroy(cd, opt_key_slot); - tools_keyslot_msg(r, REMOVED); + tools_keyslot_msg(opt_key_slot, REMOVED); out: crypt_safe_free(password); crypt_free(cd); @@ -1911,7 +1911,7 @@ static int action_luksErase(void) r = crypt_keyslot_destroy(cd, i); if (r < 0) goto out; - tools_keyslot_msg(r, REMOVED); + tools_keyslot_msg(i, REMOVED); } } out: diff --git a/tests/compat-test b/tests/compat-test index 5854eb31..6123ee48 100755 --- a/tests/compat-test +++ b/tests/compat-test @@ -849,7 +849,7 @@ prepare "[37] Interactive add key." new expect - >/dev/null <