mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-16 05:10:03 +01:00
Fix readonly activation if underlying device is readonly (1.4.0).
This commit is contained in:
@@ -1049,7 +1049,7 @@ int LUKS1_activate(struct crypt_device *cd,
|
||||
device_check = DEV_EXCL;
|
||||
|
||||
r = device_check_and_adjust(cd, dmd.device, device_check,
|
||||
&dmd.size, &dmd.offset, &flags);
|
||||
&dmd.size, &dmd.offset, &dmd.flags);
|
||||
if (r)
|
||||
return r;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user