mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 08:39:28 +00:00
fix a bug in lib/device.c.
This commit is contained in:
1 parent
af670e41f3
commit
aa4e796168
2 files changed
+9
-1
No files matched your search
+1
-1
@@ -99,7 +99,7 @@ get_drive_geometry (struct geometry *geom, char **map, int drive)
|
||||
/* FreeBSD, NetBSD or OpenBSD */
|
||||
{
|
||||
struct disklabel hdg;
|
||||
if (ioctl (disks[drive].flags, DIOCGDINFO, &hdg))
|
||||
if (ioctl (fd, DIOCGDINFO, &hdg))
|
||||
goto fail;
|
||||
|
||||
geom->cylinders = hdg.d_ncylinders;
|
||||
|
||||
Reference in new issue
Block a user