]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-94692: Only catch OSError in shutil.rmtree() (#112756)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 5 Dec 2023 15:40:49 +0000 (17:40 +0200)
committerGitHub <noreply@github.com>
Tue, 5 Dec 2023 15:40:49 +0000 (16:40 +0100)
commit563ccded6e83bfdd8c5622663c4edb679e96e08b
tree63294ad3f972317a65bf88d58596469a7f92c971
parentbc68f4a4abcfbea60bb1db1ccadb07613561931c
gh-94692: Only catch OSError in shutil.rmtree() (#112756)

Previously a symlink attack resistant version of shutil.rmtree() could ignore
or pass to the error handler arbitrary exception when invalid arguments
were provided.
Lib/shutil.py
Lib/test/test_shutil.py
Misc/NEWS.d/next/Library/2023-12-05-16-20-40.gh-issue-94692.-e5C3c.rst [new file with mode: 0644]