Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

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
@mholt mholt added the bug label Aug 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants