From 86ee4d5bd9106409562edbdc4d8587eca01d09d1 Mon Sep 17 00:00:00 2001 From: brucec Date: Mon, 21 Feb 2011 09:56:08 +0000 Subject: 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 --- usr.sbin/fdformat/fdformat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'usr.sbin/fdformat') 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 -- cgit v1.1