From e898b6c0c7cc1424f9802722edb891a2be91db68 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 9 Oct 2001 16:54:18 +0000 Subject: [PATCH] * fhandler.cc (fhandler_disk_file::open): Add missing case clash check. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/fhandler.cc | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 9733d3825..b0d688142 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +Tue Oct 9 18:53:00 2001 Corinna Vinschen + + * fhandler.cc (fhandler_disk_file::open): Add missing case clash check. + Mon Oct 8 01:47:27 2001 Christopher Faylor * dtable.cc (dtable::build_fhandler): Allocate correct amount for given diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index 25e2aab83..07a235c12 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -1378,6 +1378,13 @@ fhandler_disk_file::fhandler_disk_file (const char *name) : int fhandler_disk_file::open (path_conv *real_path, int flags, mode_t mode) { + if (real_path->case_clash && flags & O_CREAT) + { + debug_printf ("Caseclash detected."); + set_errno (ECASECLASH); + return 0; + } + if (real_path->isbinary ()) { set_r_binary (1);