Re: msi: Use the intended attributes when overwriting the target file in cabinet_copy_file.
23 Nov
2015
23 Nov
'15
2:17 p.m.
On Mon, 2015-11-23 at 14:13 +0100, Thomas Faber wrote:
The current code uses the old file's attributes, which means it would make the file read-only again. This would e.g. prevent the deletion of the file at the end of test_readonlyfile_cab (and should probably even make this CreateFileW call fail since it specifies GENERIC_WRITE).
The reason this currently works in Wine is that CreateFile keeps the existing file attributes in this case (see the todo_wine in test_NtCreateFile).
The patch fixes msi to use the correct attributes as returned by the callback.
Looks good but if it doesn't fix a real installer I think we should hold off until the freeze is over.
3675
Age (days ago)
3675
Last active (days ago)
0 comments
1 participants
participants (1)
-
Hans Leidekker