bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] hardlink problem when --strip-components is used


From: Morten Welinder
Subject: [Bug-tar] hardlink problem when --strip-components is used
Date: Sun, 07 Jan 2007 00:05:32 -0000

The combination of hardlinks in an archive and the use of --strip-components
fails, see below.

Morten


~> sh -x tar-bug
+ uname -a
Linux toshiba 2.6.18.2-34-default #1 SMP Mon Nov 27 11:46:27 UTC 2006
i686 i686 i386 GNU/Linux
+ tar --version
tar (GNU tar) 1.15.1
+ rm -rf tar-bug-src
+ mkdir tar-bug-src
+ cd tar-bug-src
+ touch xxx
+ ln xxx yyy
+ cd ..
+ tar cf tar-bug.tar tar-bug-src
+ rm -rf tar-bug-dst
+ mkdir tar-bug-dst
+ tar --strip-components=1 -C tar-bug-dst -x -f tar-bug.tar
tar: yyy: Cannot hard link to `tar-bug-src/xxx': No such file or directory
tar: Error exit delayed from previous errors




reply via email to

[Prev in Thread] Current Thread [Next in Thread]