Auto merge of #6336 - bundler:segiddins/updater-use-more-filesystem-access, r=colby-swandale
Auto merge of #6336 - bundler:segiddins/updater-use-more-filesystem-access, r=colby-swandale

[CompactIndexClient::Updater] Use filesystem_access when copying files

### What was the end-user problem that led to this PR?

The problem was users could see the error template when they do not have write permissions to their temporary directory.

Closes https://github.com/bundler/bundler/issues/6289

### What was your diagnosis of the problem?

My diagnosis was we need to use `SharedHelpers.filesystem_access` when writing files.

### What is your fix for the problem, implemented in this PR?

My fix wraps usage of `cp`

(cherry picked from commit b7b847fe734dc8d95782d2e6510c8bc9a6631374)

bundler/bundler,bundler/bundler,mvz/bundler,dilumnavanjana/bundler,mvz/bundler,dilumnavanjana/bundler