From c9e2a0ff550b2ceb3c0e8d5568ac598dd192cac8 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 31 May 2000 14:43:23 +0000 Subject: [PATCH] * fhandler.cc (fhandler_disk_file::open): Check for executable even if ntsec is on if filesystem doesn't support ACLs. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler.cc | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index fcbc0453b..dda8abb0f 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Wed May 31 16:40:00 2000 Corinna Vinschen + + * fhandler.cc (fhandler_disk_file::open): Check for executable + even if ntsec is on if filesystem doesn't support ACLs. + Wed May 31 15:57:00 2000 Corinna Vinschen * dcrt0.cc: Use LoadDLLfuncEx for loading Crypto API functions 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];