mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 18:27:22 +00:00
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:
parent
946bca4fcd
commit
cb496fcf97
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=151722
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue