mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-19 23:00:18 +01:00
Fix empty device name in reencryption prompt message.
While resuming LUKS2 reencryption operation for device identified by active mapping (--active-name) the prompt about ongoing operation did not use correct variable to get device name in the message.
This commit is contained in:
@@ -306,7 +306,7 @@ static int reencrypt_luks2_load(struct crypt_device *cd, const char *data_device
|
|||||||
if (!ARG_SET(OPT_BATCH_MODE_ID) && !ARG_SET(OPT_RESUME_ONLY_ID)) {
|
if (!ARG_SET(OPT_BATCH_MODE_ID) && !ARG_SET(OPT_RESUME_ONLY_ID)) {
|
||||||
r = asprintf(&msg, _("Device %s is already in LUKS2 reencryption. "
|
r = asprintf(&msg, _("Device %s is already in LUKS2 reencryption. "
|
||||||
"Do you wish to resume previously initialised operation?"),
|
"Do you wish to resume previously initialised operation?"),
|
||||||
crypt_get_metadata_device_name(cd) ?: data_device);
|
crypt_get_metadata_device_name(cd) ?: crypt_get_device_name(cd));
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
r = -ENOMEM;
|
r = -ENOMEM;
|
||||||
goto out;
|
goto out;
|
||||||
|
|||||||
Reference in New Issue
Block a user