Fix readonly activation if underlying device is readonly (1.4.0).

This commit is contained in:
Milan Broz
2012-05-27 11:30:38 +02:00
parent 11ee2876a6
commit a5cc87b4a5
2 changed files with 4 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
2012-05-27 Milan Broz <gmazyland@gmail.com>
* Fix readonly activation if underlying device is readonly (1.4.0).
2012-05-21 Milan Broz <gmazyland@gmail.com>
* Add --enable-fips for linking with fipscheck library.
* Initialize binary and library selfcheck if running in FIPS mode.

View File

@@ -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;