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:
parent
1364bd02ef
commit
9cd8b5cf0d
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user