]> 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)
committerMartin Matuska <martin@matuska.de>
Sun, 22 Sep 2024 23:08:30 +0000 (01:08 +0200)
commitdff171decd60683af7264b2194ba26c6c1d8ad60
treed292ae370aeae9002a2854f4a28e74ece919432b
parentde883f881cdb85cd91c20e29e8a0f4dd05caf485
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.

(cherry picked from commit 75cdc5947073f346d6926939d94347c8592a913b)
libarchive/archive_read_support_format_tar.c
tar/test/test_copy.c