]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-113188: Fix shutil.copymode() and shutil.copystat() on Windows (GH-113285)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 23 Dec 2023 10:31:52 +0000 (12:31 +0200)
committerGitHub <noreply@github.com>
Sat, 23 Dec 2023 10:31:52 +0000 (10:31 +0000)
commitc7874bb56f862dd96a9a74b809dbea5688fa6c1c
treeabf251674d5b8f024f2af0116fdecbdd67ac0c52
parent4259acd39464b292075f75b7604535cb6158c25b
[3.12] gh-113188: Fix shutil.copymode() and shutil.copystat() on Windows (GH-113285)

Previously they worked differenly if dst is a symbolic link:
they modified the permission bits of dst itself rather than the file
it points to if follow_symlinks is true or src is not a symbolic link,
and did nothing if follow_symlinks is false and src is a symbolic link.
Lib/shutil.py
Lib/test/test_shutil.py
Misc/NEWS.d/next/Library/2023-12-15-20-29-49.gh-issue-113188.AvoraB.rst [new file with mode: 0644]