* fhandler.cc (fhandler_disk_file::open): Avoid checking a magic
number of a directory.
This commit is contained in:
parent
f97adf983d
commit
0f0a7dc99d
|
@ -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.
|
||||
|
|
|
@ -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 ()))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue