Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
fseeko.
This commit is contained in:
parent
dac86b182c
commit
b73249d260
9 changed files with 39 additions and 32 deletions
|
@ -223,7 +223,7 @@ grub_util_get_geli_uuid (const char *dev)
|
|||
|
||||
s = grub_util_get_fd_size (fd, dev, &log_secsize);
|
||||
s >>= log_secsize;
|
||||
grub_util_fd_seek (fd, dev, (s << log_secsize) - 512);
|
||||
grub_util_fd_seek (fd, (s << log_secsize) - 512);
|
||||
|
||||
uuid = xmalloc (GRUB_MD_SHA256->mdlen * 2 + 1);
|
||||
if (grub_util_fd_read (fd, (void *) &hdr, 512) < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue