]> git.ipfire.org Git - thirdparty/tar.git/commit
Gracefully handle duplicate symlinks when extracting
authorSergey Poznyakoff <gray@gnu.org>
Mon, 8 Feb 2021 14:11:41 +0000 (16:11 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Mon, 8 Feb 2021 14:15:22 +0000 (16:15 +0200)
commit553210d5aded7c786d759bc3b0670d5def0ecb24
treefeeed5f72a3a77e49f5b3f2eacdcfe5ab9a910c6
parentee2ec5ff190fb91841fe7989c1c0b57f0a1eadb2
Gracefully handle duplicate symlinks when extracting

If the archive being extracted contains multiple copies
of the same symlink, extract only the first of them and
skip the rest.  The use case is described in

https://lists.gnu.org/archive/html/bug-tar/2021-01/msg00026.html

The bug was introduced by 2d3396c3ea.

* src/extract.c (create_placeholder_file): If placeholder already
exists and is registered in the delayed_link list, return immediately.
src/extract.c