Permalink
Browse files

The FD_FORM ioctl used to ignore errors from the floppy controller; n…

…ow 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
  • Loading branch information...
1 parent 1261a48 commit fdf051d0661858b89db3c75d9561728b5abcf375 brucec committed Feb 21, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 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

0 comments on commit fdf051d

Please sign in to comment.