restic / rest-server

Rest Server is a high performance HTTP server that implements restic's REST backend API.
BSD 2-Clause "Simplified" License
943 stars 140 forks source link

Honour repo.FileMode permissions #171

Closed MichaelEischer closed 2 years ago

MichaelEischer commented 2 years ago

What is the purpose of this change? What does it change?

ioutil.TempFile always creates files with permissions 0600. Use a custom method to be able to honor the FileMode configured in repo.go. Note that this is not a user visible change as the option is not exposed anywhere.

Was the change discussed in an issue or in the forum before?

See #166.

Checklist