Skip to content

Tar: behavior for symbolic links to directories #74214

@tmds

Description

@tmds

Unlike tar, currently these links are being followed.
If the file linked to is in the archive it will be duplicated. If it is outside the archived directory it will be included as if it were.
Symbolic links to directories can also cause loops which will cause the archive creation to hang.

Can we behave like tar and not follow symlinks by default?
tar does provide an option to follow the links (--dereference).

cc @carlossanlop @dotnet/area-system-io

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions