OSDN Git Service

* fhandler.cc (fhandler_disk_file::open): Check for executable
authorcorinna <corinna>
Wed, 31 May 2000 14:43:23 +0000 (14:43 +0000)
committercorinna <corinna>
Wed, 31 May 2000 14:43:23 +0000 (14:43 +0000)
        even if ntsec is on if filesystem doesn't support ACLs.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler.cc

index fcbc045..dda8abb 100644 (file)
@@ -1,3 +1,8 @@
+Wed May 31 16:40:00 2000  Corinna Vinschen <corinna@vinschen.de>
+
+       * 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 <corinna@vinschen.de>
 
        * dcrt0.cc: Use LoadDLLfuncEx for loading Crypto API functions
index ea868a8..609d102 100644 (file)
@@ -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];