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.
This commit is contained in:
Peter Wemm 2005-10-26 22:23:52 +00:00
parent 946bca4fcd
commit cb496fcf97
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=151722

View file

@ -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]);