Issue 857297: Tarfile and hard-links (original) (raw)

The attachment has a tar.gz file which contains a file and an hard-link to that file. The Python script unpacks the tar file to 3 locations: the current directory, the current directory specified by absolute path and /tmp). In the machines I've tested it, when unpacking to /tmp (or any other directory that does not belongs to the same branch as the current) the hard-link is not created. Am I missing something ?

I have tested it with the tarfile module that ships with Python 2.3.2, and with the CVS tarfile module, the behavior is the same.

Regards Ricardo Martins