This is the mail archive of the
mailing list for the Cygwin project.
tar failing hard link creation
- From: tommi dot sairo at elisanet dot fi
- To: cygwin at cygwin dot com
- Date: Wed, 7 May 2008 15:26:23 +0300 (EEST)
- Subject: tar failing hard link creation
- Reply-to: tommi dot sairo at iki dot fi
There is something mysterious in tar with Cygwin when archive contains hard links. Similar issues have been reported earlier:
In my case, a colleague was trying to extract a pre-built cross-toolchain on his brand new WinXP laptop from a tarball I had created earlier. This tarball extracts just fine on all tried systems except this one. Cygwin setup is exactly the same as in other computers (installed from same set of packages burnt on CD-R). Cygwin root is on NTFS filesystem. Creating hard links manually using ln works fine, but tar cannot extract hard links from an archive, giving errors like:
tar: bar: Cannot hard link to 'foo': File exists
Updating to current tar (1.20) gives the exact same behavior, but made it possible to circumvent the problem by repackaging the files with the new --hard-dereference option.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html