[Bug 56573] CopyFile arbitrarily sets read-only attribute on destination file.