Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-04-02 18:35:17 +0400
committerCorinna Vinschen <corinna@vinschen.de>2001-04-02 18:35:17 +0400
commit0f0a7dc99d2e837828b14035817f2428437aa1c6 (patch)
tree91907108dc5dd34bd7e038eda9cf25aead40e93d
parentf97adf983d118eee4f06807e2d9092f32e8846b1 (diff)
* fhandler.cc (fhandler_disk_file::open): Avoid checking a magic
number of a directory.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler.cc1
2 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 60fb23615..f98a93667 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2001-04-02 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
+
+ * fhandler.cc (fhandler_disk_file::open): Avoid checking a magic
+ number of a directory.
+
Mon Apr 2 00:24:08 2001 Christopher Faylor <cgf@cygnus.com>
* shared_info.h (mount_info): Remove mnt_ elements.
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index adeec56a5..73fe3f554 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -1264,6 +1264,7 @@ fhandler_disk_file::open (path_conv& real_path, int flags, mode_t mode)
extern BOOL allow_ntea;
if (real_path.isdisk ()
+ && !(real_path.file_attributes () & FILE_ATTRIBUTE_DIRECTORY)
&& (real_path.exec_state () == dont_know_if_executable)
&& !allow_ntea && (!allow_ntsec || !real_path.has_acls ()))
{