mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
The FD_FORM ioctl used to ignore errors from the floppy controller; now when
it encounters an error it returns an error from the ioctl. Ignore any errors when using the FD_FORM ioctl. PR: kern/103862 MFC after: 3 days
This commit is contained in:
parent
6bccea7c2b
commit
bcaa6ebc45
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218910
@ -75,8 +75,7 @@ format_track(int fd, int cyl, int secs, int head, int rate,
|
||||
f.fd_formb_secno(i) = il[i+1];
|
||||
f.fd_formb_secsize(i) = secsize;
|
||||
}
|
||||
if(ioctl(fd, FD_FORM, (caddr_t)&f) < 0)
|
||||
err(EX_OSERR, "ioctl(FD_FORM)");
|
||||
(void)ioctl(fd, FD_FORM, (caddr_t)&f);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user