* fhandler.cc (fhandler_disk_file::open): Check for executable

even if ntsec is on if filesystem doesn't support ACLs.
This commit is contained in:
Corinna Vinschen 2000-05-31 14:43:23 +00:00
parent c719f9429a
commit c9e2a0ff55
2 changed files with 8 additions and 2 deletions

View 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> Wed May 31 15:57:00 2000 Corinna Vinschen <corinna@vinschen.de>
* dcrt0.cc: Use LoadDLLfuncEx for loading Crypto API functions * dcrt0.cc: Use LoadDLLfuncEx for loading Crypto API functions

View 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_ntea;
extern BOOL allow_ntsec; extern BOOL allow_ntsec;
if (!real_path.isexec () && !allow_ntea && !allow_ntsec && if (!real_path.isexec () && !allow_ntea
GetFileType (get_handle ()) == FILE_TYPE_DISK) && (!allow_ntsec || !real_path.has_acls ())
&& GetFileType (get_handle ()) == FILE_TYPE_DISK)
{ {
DWORD done; DWORD done;
char magic[3]; char magic[3];