* fhandler.cc (fhandler_disk_file::open): Check for allow_ntsec
when determining exec flag. * path.cc (symlink_info::check): Remove call to get_file_attribute(). * security.cc (read_sd): Rename, ditto for variables to conform to common naming convention. Use GetFileSecurity() instead of BackupRead() to avoid permission problems when reading ACLs. (write_sd): Same renaming as for read_sd(). (alloc_sd): Change default permissions according to Linux permissions for group and world when write permission is set. * syscalls.cc (stat_worker): Avoid different permission problems when requesting file informations.
This commit is contained in:
@ -1187,8 +1187,9 @@ fhandler_disk_file::open (path_conv& real_path, int flags, mode_t mode)
|
||||
goto out;
|
||||
|
||||
extern BOOL allow_ntea;
|
||||
extern BOOL allow_ntsec;
|
||||
|
||||
if (!real_path.isexec () && !allow_ntea &&
|
||||
if (!real_path.isexec () && !allow_ntea && !allow_ntsec &&
|
||||
GetFileType (get_handle ()) == FILE_TYPE_DISK)
|
||||
{
|
||||
DWORD done;
|
||||
|
Reference in New Issue
Block a user