[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] tar hard link failure with xform, full path, and duplicate fil
From: |
Robert Widmer |
Subject: |
[Bug-tar] tar hard link failure with xform, full path, and duplicate files |
Date: |
Thu, 28 Sep 2017 15:09:44 -0400 |
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
- [Bug-tar] tar hard link failure with xform, full path, and duplicate files,
Robert Widmer <=