Skip to content

TarFile.ExtractToDirectory is unable to extract tar archives with hard links. #87463

Closed
@tmds

Description

@tmds

The implementation assumes the LinkName stored for a hard link is a path relative to the location of the link (like with a symbolic link).
However, the LinkName for a hard link is path relative to the archive extraction directory.

I've included a commit that fixes this in the PR I already had open which changes some related code: #85378.
I can move it to a separate PR if desired.

cc @dotnet/area-system-io @carlossanlop @adamsitnik

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions