summaryrefslogtreecommitdiffstats
path: root/Doc/library/tarfile.rst
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2023-08-21 10:56:46 (GMT)
committerGitHub <noreply@github.com>2023-08-21 10:56:46 (GMT)
commitacbd3f9c5c5f23e95267714e41236140d84fe962 (patch)
tree0372b9168b6554b0591152c3a2583638a8e84cda /Doc/library/tarfile.rst
parent622ddc41674c2566062af82f7b079aa01d2aae8c (diff)
downloadcpython-acbd3f9c5c5f23e95267714e41236140d84fe962.zip
cpython-acbd3f9c5c5f23e95267714e41236140d84fe962.tar.gz
cpython-acbd3f9c5c5f23e95267714e41236140d84fe962.tar.bz2
gh-107845: Fix symlink handling for tarfile.data_filter (GH-107846)
Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Lumír 'Frenzy' Balhar <frenzy.madness@gmail.com>
Diffstat (limited to 'Doc/library/tarfile.rst')
-rw-r--r--Doc/library/tarfile.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/tarfile.rst b/Doc/library/tarfile.rst
index 00f3070..62d67bc 100644
--- a/Doc/library/tarfile.rst
+++ b/Doc/library/tarfile.rst
@@ -740,6 +740,11 @@ A ``TarInfo`` object has the following public data attributes:
Name of the target file name, which is only present in :class:`TarInfo` objects
of type :const:`LNKTYPE` and :const:`SYMTYPE`.
+ For symbolic links (``SYMTYPE``), the *linkname* is relative to the directory
+ that contains the link.
+ For hard links (``LNKTYPE``), the *linkname* is relative to the root of
+ the archive.
+
.. attribute:: TarInfo.uid
:type: int