diff options
author | brucec <brucec@FreeBSD.org> | 2011-02-21 09:56:08 +0000 |
---|---|---|
committer | brucec <brucec@FreeBSD.org> | 2011-02-21 09:56:08 +0000 |
commit | 86ee4d5bd9106409562edbdc4d8587eca01d09d1 (patch) | |
tree | 23539504a3bf8b1af35b9e10bb24dbb99c1532cb /usr.sbin/fdformat | |
parent | 6d9b42b4862ca331b22065d875de9cad9da72658 (diff) | |
download | FreeBSD-src-86ee4d5bd9106409562edbdc4d8587eca01d09d1.zip FreeBSD-src-86ee4d5bd9106409562edbdc4d8587eca01d09d1.tar.gz |
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
Diffstat (limited to 'usr.sbin/fdformat')
-rw-r--r-- | usr.sbin/fdformat/fdformat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/fdformat/fdformat.c b/usr.sbin/fdformat/fdformat.c index 807ad8d..341a161 100644 --- a/usr.sbin/fdformat/fdformat.c +++ b/usr.sbin/fdformat/fdformat.c @@ -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 |