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:
grog 2001-01-20 03:46:19 +00:00
parent 3923d4a12b
commit 18831b1520

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 */