diff options
author | peter <peter@FreeBSD.org> | 2005-10-26 22:23:52 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2005-10-26 22:23:52 +0000 |
commit | a3aa8bfa03310dfc6b17bf722f208bbb043ba967 (patch) | |
tree | 75d9112e53f75298075d12edf0f75f9db5f79b02 /usr.sbin | |
parent | 234aa74f77053fcb09b968c983f0bd50342aa9b3 (diff) | |
download | FreeBSD-src-a3aa8bfa03310dfc6b17bf722f208bbb043ba967.zip FreeBSD-src-a3aa8bfa03310dfc6b17bf722f208bbb043ba967.tar.gz |
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.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/fdcontrol/fdcontrol.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/usr.sbin/fdcontrol/fdcontrol.c b/usr.sbin/fdcontrol/fdcontrol.c index 559ce02..f1a9233 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]); |