diff options
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r-- | winsup/cygwin/fhandler.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index ea868a839..609d1023b 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -1189,8 +1189,9 @@ fhandler_disk_file::open (path_conv& real_path, int flags, mode_t mode) extern BOOL allow_ntea; extern BOOL allow_ntsec; - if (!real_path.isexec () && !allow_ntea && !allow_ntsec && - GetFileType (get_handle ()) == FILE_TYPE_DISK) + if (!real_path.isexec () && !allow_ntea + && (!allow_ntsec || !real_path.has_acls ()) + && GetFileType (get_handle ()) == FILE_TYPE_DISK) { DWORD done; char magic[3]; |