]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Clean up linkpath between entries (#2343)
authorTim Kientzle <kientzle@acm.org>
Sun, 22 Sep 2024 23:06:34 +0000 (16:06 -0700)
committerGitHub <noreply@github.com>
Sun, 22 Sep 2024 23:06:34 +0000 (01:06 +0200)
commit75cdc5947073f346d6926939d94347c8592a913b
tree92848ff2252c1be39119eeac57b6e26c45264b20
parentfa7e9cd7cbcd41386c30cc75a706805dd4e42716
Clean up linkpath between entries (#2343)

PR #2127 failed to clean up the linkpath storage between entries. As a
result, after the first hard/symlink entry in a pax format archive, all
subsequent entries would get the same link information.

I'm really unsure how this bug failed to trip CI. I'll do some digging
in the test suite before I merge this.

Resolves #2331 , #2337

P.S. Thanks to Brad King for noting that the linkpath wasn't being
managed correctly, which was a big hint for me.
libarchive/archive_read_support_format_tar.c
tar/test/test_copy.c