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

in tar dump, convert uid, gid of value -1 to zero #4104

Merged

Conversation

philaris
Copy link
Contributor

@philaris philaris commented Dec 27, 2022

What does this PR change? What problem does it solve?

This solves issue #4103. See #4103 and discussion #4102.

Was the change previously discussed in an issue or on the forum?

Yes, see #4103 and discussion #4102.

Checklist

Comments on checklist: I did not write a new test, because the change is simple. I have run the tests though. The change is internal, so there is no change in the manual.

  • I have read the contribution guidelines.
  • I have enabled maintainer edits.
  • I have added tests for all code changes.
  • I have added documentation for relevant changes (in the manual).
  • There's a new file in changelog/unreleased/ that describes the changes for our users (see template).
  • 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.

internal/dump/tar.go Outdated Show resolved Hide resolved
@greatroar
Copy link
Contributor

LGTM. My suggestion of comparing to -1 is just that, a suggestion.

@philaris
Copy link
Contributor Author

Hi @MichaelEischer, you can retry the PR run.

internal/dump/tar.go Outdated Show resolved Hide resolved
changelog/unreleased/issue-4103 Outdated Show resolved Hide resolved
Only for a 32-bit build of restic, convert a uid or gid value of -1 to 0.
Copy link
Member

@MichaelEischer MichaelEischer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

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.

32-bit binary tar dump of repository with high uid, gid entries cannot be read by gnu tar
3 participants