mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
* gh-143010: Prevent a TOCTOU issue by gh-143010: Prevent a TOCTOU issue by only calling open once RDM: per AZero13's research the 'x' option did not exist when this code was written, This modernization can thus drop the fd trick in _create_carefully and just use open with 'x' to achieve the same goal more securely. Co-authored-by: sobolevn <mail@sobolevn.me>
1 line
170 B
ReStructuredText
1 line
170 B
ReStructuredText
Fixed a bug in :mod:`mailbox` where the precise timing of an external event could result in the library opening an existing file instead of a file it expected to create.
|