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
|
@ -351,10 +351,11 @@ grub_util_fd_open_device (const grub_disk_t disk, grub_disk_addr_t sector, int f
|
|||
}
|
||||
}
|
||||
|
||||
if (grub_util_fd_seek (fd, grub_util_biosdisk_get_osdev (disk),
|
||||
sector << disk->log_sector_size))
|
||||
if (grub_util_fd_seek (fd, sector << disk->log_sector_size))
|
||||
{
|
||||
close (fd);
|
||||
grub_error (GRUB_ERR_BAD_DEVICE, N_("cannot seek `%s': %s"),
|
||||
grub_util_biosdisk_get_osdev (disk), strerror (errno));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue