genotrance / nimarchive

libarchive wrapper for Nim
MIT License
17 stars 3 forks source link

Symlinks are not extracted #15

Open rominf opened 3 years ago

rominf commented 3 years ago

Steps to reproduce

$ cd /tmp
$ ln -s broken_symlink_destination broken_symlink
$ tar -czvf broken_symlink.tar.gz broken_symlink
$ echo -e 'import nimarchive\n\nextract("/tmp/broken_symlink.tar.gz", "/tmp/output")' >/tmp/test_nimarchive_broken_symlink.nim
$ nim run /tmp/test_nimarchive_broken_symlink.nim
# No broken_symlink in /tmp/output
rominf commented 3 years ago

https://github.com/nim-lang/Nim/pull/16709 should fix that.