summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2004-04-20 11:01:22 +0000
committerCorinna Vinschen <corinna@vinschen.de>2004-04-20 11:01:22 +0000
commit1b557b4333fab9dae7bbe9c28798731bc6558dec (patch)
tree33660387f249d828a90a46ba520c4a6e76294894 /winsup/cygwin/fhandler.cc
parentfc0ac9dfe61d308de80cd36d27b7801fb33eba69 (diff)
downloadcygnal-1b557b4333fab9dae7bbe9c28798731bc6558dec.tar.gz
cygnal-1b557b4333fab9dae7bbe9c28798731bc6558dec.tar.bz2
cygnal-1b557b4333fab9dae7bbe9c28798731bc6558dec.zip
* fhandler.cc (fhandler_base::open): Remove special DEV_FLOPPY_MAJOR
treatment. * fhandler_raw.cc (fhandler_dev_raw::open): Simplify write-only case. * fhandler_tape.cc (fhandler_dev_tape::raw_write): Add accidentally dropped condition.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r--winsup/cygwin/fhandler.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index e02d4e507..9aa3c0d4a 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -607,11 +607,7 @@ fhandler_base::open (int flags, mode_t mode)
access = GENERIC_WRITE | FILE_READ_ATTRIBUTES;
else
access = GENERIC_READ | GENERIC_WRITE;
- /* Allow reliable lseek on disk devices. */
- if (get_major () == DEV_FLOPPY_MAJOR)
- access |= GENERIC_READ;
- else if (get_major () != DEV_SERIAL_MAJOR
- && get_major () != DEV_TAPE_MAJOR)
+ if (get_major () != DEV_SERIAL_MAJOR && get_major () != DEV_TAPE_MAJOR)
{
create_options |= FILE_SYNCHRONOUS_IO_NONALERT;
access |= SYNCHRONIZE;