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

Bugfix: Tar files created in their target directory shouldn't recurse infinitely #384

Merged
merged 5 commits into from Aug 31, 2023

Conversation

drewstinnett
Copy link
Contributor

This addresses #383 .

Happy to refactor however you like, and open to any feedback. Thank you!

Copy link
Owner

@mholt mholt left a comment

Choose a reason for hiding this comment

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

Thanks for the patch! I have not encountered this situation so I appreciate the test case. Is the right behavior really to just skip the file?

fs.go Outdated Show resolved Hide resolved
Updating per suggestion, looks great!

Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
@drewstinnett
Copy link
Contributor Author

Thanks for the patch! I have not encountered this situation so I appreciate the test case. Is the right behavior really to just skip the file?

Yep! At least to the best of my knowledge skipping this sub '.' entry keeps everything going, correctly. I tested it on some random archives here and they all behaved correctly with that weird entry being completely skipped.

Copy link
Owner

@mholt mholt left a comment

Choose a reason for hiding this comment

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

LGTM after I fix my syntax error

fs.go Outdated Show resolved Hide resolved
@mholt mholt merged commit e2261a1 into mholt:master Aug 31, 2023
3 checks passed
@mholt mholt added the bug label Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants