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
@ -120,7 +120,6 @@ main(int argc, char **argv)
|
|||||||
mode = O_RDONLY | O_NONBLOCK;
|
mode = O_RDONLY | O_NONBLOCK;
|
||||||
else
|
else
|
||||||
mode = O_RDWR;
|
mode = O_RDWR;
|
||||||
mode = O_RDONLY | O_NONBLOCK;
|
|
||||||
|
|
||||||
if((fd = open(argv[0], mode)) < 0)
|
if((fd = open(argv[0], mode)) < 0)
|
||||||
err(EX_UNAVAILABLE, "open(%s)", argv[0]);
|
err(EX_UNAVAILABLE, "open(%s)", argv[0]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user