mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
extend use of lseek_blockwise functions
This commit is contained in:
committed by
Milan Broz
parent
ed19ddf620
commit
82d81b9e86
@@ -82,9 +82,9 @@ int VERITY_read_sb(struct crypt_device *cd,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (lseek(devfd, sb_offset, SEEK_SET) < 0 ||
|
||||
read_blockwise(devfd, device_block_size(device), device_alignment(device),
|
||||
&sb, hdr_size) < hdr_size) {
|
||||
if (read_lseek_blockwise(devfd, device_block_size(device),
|
||||
device_alignment(device), &sb, hdr_size,
|
||||
sb_offset) < hdr_size) {
|
||||
close(devfd);
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user