From 1b557b4333fab9dae7bbe9c28798731bc6558dec Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 20 Apr 2004 11:01:22 +0000 Subject: * 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. --- winsup/cygwin/fhandler.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'winsup/cygwin/fhandler.cc') 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; -- cgit v1.2.3