Correct check for partition c. Previously the check was for drive 2,

which did not exactly have the desired result.

Submitted by:	Akira Watanabe <akira@myaw.ei.meisei-u.ac.jp>
This commit is contained in:
Greg Lehey 2001-01-20 03:46:19 +00:00
parent 1364bd02ef
commit 9cd8b5cf0d

View File

@ -125,7 +125,7 @@ open_drive(struct drive *drive, struct proc *p, int verbose)
+((unit & ~31) << 16); /* high-order unit bits */
}
if ((unit & 7) == 2) /* partition c */
if ((devminor & 7) == 2) /* partition c */
return ENOTTY; /* not buying that */
drive->dev = makedev(devmajor, devminor); /* find the device */