Fossil Forum
haampie
4 weeks, 2 days ago
Post: fossil tarball produces invalid tar files
fossil tarball writes a symlink's target into the linkname field of every tar member that follows the symlink, not just the symlink's own.
I noticed this while working on https://stoppels.ch/tar, which is a test suite for tar file parsers, where I'm assigning identifiers to certain ambiguities, and I'm checking how prevalent those ambiguities are in tens of thousands of release tarballs.
I've labeled KO2 link-name-on-file as an ambiguous case, and found one instance of K02, for a certain package bgen 1.1.7, and it seems that that tar file was generated using Fossil.
For that particular case, there's a symlink to v1.3.html, and afterwards 129 tar entries that all register linkname = v1.3.html.
It seems this bug is still present in Fossil.