[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Duplicate symlinks lead to error in tar 1.33
From: |
Julian Rüth |
Subject: |
Duplicate symlinks lead to error in tar 1.33 |
Date: |
Tue, 26 Jan 2021 01:53:55 +0100 |
Hi,
with the latest tar 1.33 I noticed an error when adding symlinks
twice to an archive. The following did not produce an error with tar
1.32.
$ mkdir -p broken/subdir
$ ln -s ../a/target broken/subdir/link
$ tar cvf broken.tar broken/subdir/link broken/subdir/link
broken/subdir/link
broken/subdir/link
$ tar vxf broken.tar
broken/subdir/link
broken/subdir/link
tar: broken/subdir/link: Cannot hard link to ‘broken/subdir/link’: No such file
or directory
tar: Exiting with failure status due to previous errors
Obviously, adding the same file twice is not such a great idea but
should this produce an error?
Thanks,
julian
PS: This is tar 1.33 from archlinux which appears to be unpatched. (Same
happens with tar 1.33 from conda-forge.)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Duplicate symlinks lead to error in tar 1.33,
Julian Rüth <=