I have the following error when using xform, full path, and duplicate files:

[localhost tar-1.29]$ mkdir /tmp/a
[localhost tar-1.29]$ date > /tmp/a/b
[localhost tar-1.29]$ src/tar --xform=s,^tmp/a,tmp/c, -cf a.tar
/tmp/a/b /tmp/a/b
src/tar: Removing leading `/' from member names
src/tar: Removing leading `/' from hard link targets
[localhost tar-1.29]$ src/tar xf a.tar
src/tar: tmp/c/b: Cannot hard link to ‘tmp/a/b’: No such file or directory
src/tar: Exiting with failure status due to previous errors
[localhost tar-1.29]$ src/tar  --version
tar (GNU tar) 1.29


Emacs of the tar file shows the xform pointing the hard link to the old path:

 -rw-rw-r--  user/user       29 tmp/c/b
 hrw-rw-r--  user/user        0 tmp/c/b ==> tmp/a/b

Reply via email to