Skip to content

Truncated paths when unarchiving  #39

@leostera

Description

@leostera

Hello folks!

While unpacking an async-tar generated archive, file paths got truncated when they were over 100 chars. This seemed strange since macOS could unpack the archive correctly, and so did tar-rs and other tools.

Full context here: https://discord.com/channels/273534239310479360/1045944060650717204

Here's the header of the archive:
image

I can see there that the file path (3rdparty/https/hex.pm/packages/decimal/_build/default/lib/decimal/consolidated/Elixir.Hex.Solver.Constraint.beam) is complete, but at some point during the read process, it gets lost.

I tried also iterating over the .entries and printing out entry.path, entry.path_bytes, entry.header.path and entry.header.path_bytes, and they all have the truncated file path: 3rdparty/https/hex.pm/packages/decimal/_build/default/lib/decimal/consolidated/Elixir.Hex.Solver.Con.

Thanks @rrbrussell for the help debugging this 👋🏽

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions