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

TarBuilder::append_path_with_name ignores name if path is a "special" file #327

Open
tp971 opened this issue Jun 18, 2023 · 0 comments
Open

Comments

@tp971
Copy link

tp971 commented Jun 18, 2023

When append_path_with_name is given a "special" file (i.e. a file that is not a file, directory or symlink), it ignores the given name. I quickly glanced over the code and I think the fix is just to replace path by ar_name when calling append_special in builder.rs line 463: https://github.com/alexcrichton/tar-rs/blob/f4f439ca0cd3a984d2a66fb8e42f6e2307876afd/src/builder.rs#LL463C33-L463C37

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

No branches or pull requests

1 participant