fix a bug in lib/device.c.

This commit is contained in:
okuji committed 2000-09-07 10:30:09 +00:00
1 parent af670e41f3
commit aa4e796168
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -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;