]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-113188: Fix shutil.copymode() on Windows (GH-113189)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 23 Dec 2023 11:07:54 +0000 (13:07 +0200)
committerGitHub <noreply@github.com>
Sat, 23 Dec 2023 11:07:54 +0000 (11:07 +0000)
commit6e02d79f96b30bacdbc7a85e42040920b3dee915
tree8ccb156e6886c2b2b74992e4a58d326e66931d96
parentbdc8d667ab545ccec0bf8c2769f5c5573ed293ea
gh-113188: Fix shutil.copymode() on Windows (GH-113189)

Previously it worked differently if dst is a symbolic link:
it 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.

Also document similar changes in shutil.copystat().
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]