]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-154307: Fix TemporaryDirectory cleanup on DragonFly BSD (GH-154309) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 21 Jul 2026 03:54:27 +0000 (05:54 +0200)
committerGitHub <noreply@github.com>
Tue, 21 Jul 2026 03:54:27 +0000 (06:54 +0300)
commit856c8119ea9d8f574dd56cf64afe19ee2e460c8b
tree4a0493b622055ed05b41e1d167b8f7695fdf8c09
parent0df683f36cde812e11ee5a19a4f3da3d456b9b20
[3.14] gh-154307: Fix TemporaryDirectory cleanup on DragonFly BSD (GH-154309) (GH-154312)

On DragonFly BSD, removing a file or directory with the UF_NOUNLINK flag
fails with EISDIR (IsADirectoryError) instead of EPERM, so the cleanup did
not reset the flags.  Handle IsADirectoryError the same as PermissionError.
(cherry picked from commit 1c1088b1da5a7484b7b04e90ccc47aa362e709eb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Lib/tempfile.py
Misc/NEWS.d/next/Library/2026-07-21-01-13-39.gh-issue-154307.UNFKL4.rst [new file with mode: 0644]