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

Pax extended attributes for long filenames? #318

Open
ryanavella opened this issue Apr 20, 2023 · 1 comment
Open

Pax extended attributes for long filenames? #318

ryanavella opened this issue Apr 20, 2023 · 1 comment

Comments

@ryanavella
Copy link

ryanavella commented Apr 20, 2023

If I provide a very long path to Builder::append_data, it currently handles this by appending a GNU-style long-name extension into the archive.

This makes sense if I'm using a GnuHeader, but if I am using a UstarHeader I'd assume that this would be encoded using pax-style extended attributes instead. This is what libarchive does when the format is set to rpax (restricted pax), for example.

Is there a workaround with the current API to provide these pax headers?

Longer-term, would it make sense to add another field to the Builder for the user to select their preferred extended attribute format, rather than assuming GNU-style as the default?

@ryanavella
Copy link
Author

Actually, I think the first half of my question is answered in #102 already.

So my only remaining question is about whether or not GNU-style makes sense as the default for Builder (even when GnuHeader is intentionally not selected), and whether it would make sense to add more knobs for choosing between pax & gnu style in the future.

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