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

bug: new way to make uncopiable circular symlinks #77

Open
StefanKarpinski opened this issue Oct 26, 2020 · 0 comments
Open

bug: new way to make uncopiable circular symlinks #77

StefanKarpinski opened this issue Oct 26, 2020 · 0 comments

Comments

@StefanKarpinski
Copy link
Member

As a file tree:

.:
total 0
drwxr-xr-x 3 stefan staff 96 Oct 26 12:03 bar/
drwxr-xr-x 3 stefan staff 96 Oct 26 12:03 foo/

./bar:
total 0
lrwxr-xr-x 1 stefan staff 6 Oct 26 12:03 foo -> ../foo/

./foo:
total 0
lrwxr-xr-x 1 stefan staff 6 Oct 26 12:03 bar -> ../bar/

As a tarball:

julia> dir = Tar.list(tarball)
2-element Array{Tar.Header,1}:
 Tar.Header("bar/foo", :symlink, 0o755, 0, "../foo")
 Tar.Header("foo/bar", :symlink, 0o755, 0, "../bar")

Indeed, if one tries to extract this with Tar.extract(tarball, copy_symlinks = true) then it hangs.

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