* fhandler.cc (fhandler_disk_file::open): Avoid checking a magic

number of a directory.
This commit is contained in:
Corinna Vinschen 2001-04-02 14:35:17 +00:00
parent f97adf983d
commit 0f0a7dc99d
2 changed files with 6 additions and 0 deletions

View File

@ -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.

View File

@ -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 ()))
{