summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-12-23 11:07:54 (GMT)
committerGitHub <noreply@github.com>2023-12-23 11:07:54 (GMT)
commit6e02d79f96b30bacdbc7a85e42040920b3dee915 (patch)
tree8ccb156e6886c2b2b74992e4a58d326e66931d96 /Misc
parentbdc8d667ab545ccec0bf8c2769f5c5573ed293ea (diff)
downloadcpython-6e02d79f96b30bacdbc7a85e42040920b3dee915.zip
cpython-6e02d79f96b30bacdbc7a85e42040920b3dee915.tar.gz
cpython-6e02d79f96b30bacdbc7a85e42040920b3dee915.tar.bz2
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().
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2023-12-15-20-29-49.gh-issue-113188.AvoraB.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-12-15-20-29-49.gh-issue-113188.AvoraB.rst b/Misc/NEWS.d/next/Library/2023-12-15-20-29-49.gh-issue-113188.AvoraB.rst
new file mode 100644
index 0000000..17c6957
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-12-15-20-29-49.gh-issue-113188.AvoraB.rst
@@ -0,0 +1,6 @@
+Fix :func:`shutil.copymode` and :func:`shutil.copystat` on Windows.
+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 not modify the permission bits if
+*follow_symlinks* is false and *src* is a symbolic link.