mafintosh / tar-stream

tar-stream is a streaming tar parser and generator.
MIT License
408 stars 92 forks source link

Symlinks size is not consistent #48

Closed piranna closed 8 years ago

piranna commented 8 years ago

There's different behaviour on the entry size field of symlinks when the location is set as stream or in the header, having sometimes a symlink with zero size and other times a symlink to nowhere but with a size the length of the destination path. It's needed to know what says the spec and make it work homoneneously.

piranna commented 8 years ago

According to http://bugs.python.org/issue1167128, gnu tar expects symlinks size to be zero, or it will throw a skipping the next header error. It seems this will be the source of issue #44. Fix will need to set explicitly size to zero somewhere between these lines.

mafintosh commented 8 years ago

Fixed in #54