mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-14 20:30:04 +01:00
Move check for loop device inside crypt_loop_backing_file.
It also fixes minor regression where we return backing file for partition on top of loop device when prompting for passphrase. Partition on loop has different major number so it should not be considered loop device at all.
This commit is contained in:
@@ -736,8 +736,7 @@ static int action_status(void)
|
||||
log_std(" integrity keysize: %d bits\n", ip.integrity_key_size * 8);
|
||||
device = crypt_get_device_name(cd);
|
||||
log_std(" device: %s\n", device);
|
||||
if (crypt_loop_device(device)) {
|
||||
backing_file = crypt_loop_backing_file(device);
|
||||
if ((backing_file = crypt_loop_backing_file(device))) {
|
||||
log_std(" loop: %s\n", backing_file);
|
||||
free(backing_file);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user