summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2023-08-22 18:28:10 (GMT)
committerGitHub <noreply@github.com>2023-08-22 18:28:10 (GMT)
commit42deeab5b2efc2930d4eb73416e1dde9cf790dd2 (patch)
treef6d818c3c428193b0c6f146d5609aef207ca2d06 /Doc/library
parent4a793281956db0e4a1ca5fdc5f3a0e91f331a75d (diff)
downloadcpython-42deeab5b2efc2930d4eb73416e1dde9cf790dd2.zip
cpython-42deeab5b2efc2930d4eb73416e1dde9cf790dd2.tar.gz
cpython-42deeab5b2efc2930d4eb73416e1dde9cf790dd2.tar.bz2
[3.9] gh-107845: Fix symlink handling for tarfile.data_filter (GH-107846) (#108274)
(cherry picked from commit acbd3f9c5c5f23e95267714e41236140d84fe962) Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Lumír 'Frenzy' Balhar <frenzy.madness@gmail.com>
Diffstat (limited to 'Doc/library')
-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 f1d9bd3..1650885 100644
--- a/Doc/library/tarfile.rst
+++ b/Doc/library/tarfile.rst
@@ -732,6 +732,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