diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 5e28004bb..793e0f738 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2007-09-18 Corinna Vinschen + + * security.cc (set_file_sd): Open file with FILE_OPEN_FOR_BACKUP_INTENT + too. + 2007-09-17 Corinna Vinschen * path.cc (symlink_info::check): Check for STATUS_OBJECT_NAME_INVALID. diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc index e4c82d538..afe96b198 100644 --- a/winsup/cygwin/security.cc +++ b/winsup/cygwin/security.cc @@ -114,7 +114,8 @@ set_file_sd (HANDLE fh, path_conv &pc, security_descriptor &sd) status = NtOpenFile (&fh, WRITE_OWNER | WRITE_DAC, pc.get_object_attr (attr, sec_none_nih), &io, FILE_SHARE_VALID_FLAGS, - FILE_OPEN_FOR_RECOVERY); + FILE_OPEN_FOR_BACKUP_INTENT + | FILE_OPEN_FOR_RECOVERY); if (!NT_SUCCESS (status)) { fh = NULL;