@@ -6542,6 +6542,9 @@ msgid ""
6542
6542
"missing but it will be free of symlinks. (Contributed by Petr Viktorin for "
6543
6543
":cve:`2025-4517`.)"
6544
6544
msgstr ""
6545
+ "传给 :func:`os.path.realpath` 的 *strict* 形参接受一个新值 "
6546
+ ":data:`os.path.ALLOW_MISSING`。 如果使用该值,则 :exc:`FileNotFoundError` "
6547
+ "以外的错误将被重新引发;结果路径可能会缺失但它将不会有符号链接。 (由 Petr Viktorin 为 :cve:`2025-4517` 贡献。)"
6545
6548
6546
6549
#: ../../whatsnew/3.13.rst:2846
6547
6550
msgid "tarfile"
@@ -6553,13 +6556,17 @@ msgid ""
6553
6556
"to avoid path traversal attacks.Add commentMore actions (Contributed by Petr"
6554
6557
" Viktorin in :gh:`127987` and :cve:`2025-4138`.)"
6555
6558
msgstr ""
6559
+ "现在 :func:`~tarfile.data_filter` 会标准化符号链接目标以避免路径遍历攻击。 增加 commentMore 动作 (由 "
6560
+ "Petr Viktorin 在 :gh:`127987` 和 :cve:`2025-4138` 中贡献。)"
6556
6561
6557
6562
#: ../../whatsnew/3.13.rst:2851
6558
6563
msgid ""
6559
6564
":func:`~tarfile.TarFile.extractall` now skips fixing up directory attributes"
6560
6565
" when a directory was removed or replaced by another kind of file. "
6561
6566
"(Contributed by Petr Viktorin in :gh:`127987` and :cve:`2024-12718`.)"
6562
6567
msgstr ""
6568
+ "当一个目录被移除或被另一种文件替代时 :func:`~tarfile.TarFile.extractall` 现在会跳过修复目录属性。 (由 Petr "
6569
+ "Viktorin 在 :gh:`127987` 和 :cve:`2024-12718` 中贡献。).)"
6563
6570
6564
6571
#: ../../whatsnew/3.13.rst:2854
6565
6572
msgid ""
@@ -6570,6 +6577,10 @@ msgid ""
6570
6577
":exc:`~tarfile.LinkFallbackError`. (Contributed by Petr Viktorin for "
6571
6578
":cve:`2025-4330` and :cve:`2024-12718`.)"
6572
6579
msgstr ""
6580
+ "在将一个链接(硬链接或符号链接)替换为另一个归档成员的副本,以及在修复目录属性时 :func:`~tarfile.TarFile.extract` 和 "
6581
+ ":func:`~tarfile.TarFile.extractall` 现在会(重新)应用提取过滤器。 "
6582
+ "前者将引发一个新的异常,:exc:`~tarfile.LinkFallbackError`。
6EA7
(由 Petr Viktorin 为 "
6583
+ ":cve:`2025-4330` 和 :cve:`2024-12718` 贡献。)"
6573
6584
6574
6585
#: ../../whatsnew/3.13.rst:2860
6575
6586
msgid ""
@@ -6578,3 +6589,6 @@ msgid ""
6578
6589
"zero. (Contributed by Matt Prodani and Petr Viktorin in :gh:`112887` and "
6579
6590
":cve:`2025-4435`.)"
6580
6591
msgstr ""
6592
+ "当 :func:`~tarfile.TarFile.errorlevel` 为零时 :func:`~tarfile.TarFile.extract` 和"
6593
+ " :func:`~tarfile.TarFile.extractall` 将不再提取被拒绝的成员。 (由 Matt Prodani 和 Petr "
6594
+ "Viktorin 在 :gh:`112887` 和 :cve:`2025-4435` 中贡献。)"
0 commit comments