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.)

Reply via email to