From 456afc5dd5baf49f093a8b8f111c992419aa2800 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 17 Jun 2004 15:25:09 +0000 Subject: [PATCH] * fhandler.cc (fhandler_base::open): Remove 9x specific code. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/fhandler.cc | 9 --------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 715b31ff4..d0a9167e7 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2004-06-17 Corinna Vinschen + + * fhandler.cc (fhandler_base::open): Remove 9x specific code. + 2004-06-17 Pierre Humblet * fhandler.cc (fhandler_base::open_9x): Do not check for null name. diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index 1ea719405..57a3c4712 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -632,15 +632,6 @@ fhandler_base::open (int flags, mode_t mode) create_disposition, create_options, NULL, 0); if (!NT_SUCCESS (status)) { - if (!wincap.can_open_directories () && pc.isdir ()) - { - if (flags & (O_CREAT | O_EXCL) == (O_CREAT | O_EXCL)) - set_errno (EEXIST); - else if (flags & (O_WRONLY | O_RDWR)) - set_errno (EISDIR); - else - nohandle (true); - } __seterrno_from_win_error (RtlNtStatusToDosError (status)); if (!nohandle ()) goto done;