Uh oh!
There was an error while loading. Please reload this page.
std.tar: add support for file path in pax attributes - #16990
Conversation
truemedian
commented
Aug 27, 2023
Is there a reason you chose 1014 specifically instead of something like |
189900
commented
Aug 27, 2023
I went with 1014 to maintain the existing read buffer characteristics and avoid extra overhead. We can definitely switch to |
truemedian
commented
Aug 27, 2023
PAX path attributes technically have no length limitation, so we need to allocate as much space as we can reasonably handle so that the issue of not being able to handle long file paths doesn't appear again. Any path > MATH_PATH_BYTES can't be sent to the os anyway, so it's a good upper limit. |
Going to link to my idea for parsing one-component-at-a-time to support arbitrarily long file paths without needing an allocator: #15382 (comment) Just using a buffer length of |
67bebff to
d8e7e00CompareHandles .extended_header type to parse PAX attributes and check if they override the path of the next file. Increases file path limit to std.fs.MAX_PATH_BYTES. Fixesziglang#15342
d8e7e00 to
3227ca5CompareThank you both. Updated the branch to support |
Handles .extended_header type to parse PAX attributes and check if they override the path of the next file. Increases maximum file path length from 255 to
1014std.fs.MAX_PATH_BYTES.Fixes#15342