From cb496fcf970f558d1b627a0e56c6094fa9ab8202 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Wed, 26 Oct 2005 22:23:52 +0000 Subject: [PATCH] Make fdcontrol work again. It has been broken for a while. It tries to set the floppy controller parameters, but that requires that the device node be open in O_RDWR mode now. I think it is broken in 6.0 as well. This line looks like a stray anyway. --- usr.sbin/fdcontrol/fdcontrol.c | 1 - 1 file changed, 1 deletion(-) diff --git a/usr.sbin/fdcontrol/fdcontrol.c b/usr.sbin/fdcontrol/fdcontrol.c index 559ce020891e..f1a923393d76 100644 --- a/usr.sbin/fdcontrol/fdcontrol.c +++ b/usr.sbin/fdcontrol/fdcontrol.c @@ -120,7 +120,6 @@ main(int argc, char **argv) mode = O_RDONLY | O_NONBLOCK; else mode = O_RDWR; -mode = O_RDONLY | O_NONBLOCK; if((fd = open(argv[0], mode)) < 0) err(EX_UNAVAILABLE, "open(%s)", argv[0]);