Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Honour repo.FileMode permissions #171

Merged
merged 1 commit into from
Feb 10, 2022

Conversation

MichaelEischer
Copy link
Member

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

  • I have enabled maintainer edits for this PR
  • I have added tests for all changes in this PR
  • [ ] I have added documentation for the changes (in the manual)
  • [ ] There's a new file in changelog/unreleased/ that describes the changes for our users (template here)
  • I have run gofmt on the code in all commits
  • All commit messages are formatted in the same style as the other commits in the repo
  • I'm done, this Pull Request is ready for review

@fd0 fd0 merged commit e9900b7 into restic:master Feb 10, 2022
@MichaelEischer MichaelEischer deleted the fix-file-permissions branch February 10, 2022 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants